@Test
public void getEntities_twoEntitiesStored_shouldReturnTwoEntities() {

    // given
    createEntityInDatastore(KIND_NAME, PROPERTY_NAME, A_NAME);
    createEntityInDatastore(KIND_NAME, PROPERTY_NAME, ANOTHER_NAME);
    // when
    Iterable<Entity> entities = entitiesService.getEntities(KIND_NAME, ALL_NAMESPACES, null, null);
    // then
    Iterator<Entity> it = entities.iterator();
    Entity entity1 = it.next();
    Entity entity2 = it.next();
    assertEquals(A_NAME, entity1.getProperty(PROPERTY_NAME));
    assertEquals(ANOTHER_NAME, entity2.getProperty(PROPERTY_NAME));
    assertFalse(it.hasNext());
}