@Test
void shouldReturnQueryKeys() throws Throwable
{

    // Given
    RunResponseHandler runHandler = newRunResponseHandler();
    List<String> expected = asList( "key1", "key2", "key3" );
    runHandler.onSuccess( Collections.singletonMap( "fields", value( expected ) ) );
    PullResponseHandler pullHandler = mock( PullResponseHandler.class );
    // When
    RxResultCursor cursor = new RxResultCursorImpl( runHandler, pullHandler );
    List<String> actual = cursor.keys();
    // Then
    assertEquals( expected, actual );
}