cleanCenter(repo.getCollection(),id);
}
@Test
public void getCentersNames(){
Center one = getFakeCenter();
Center two = getSecondFakeCenter();
repo.saveCenter(one);
assertTrue(datastore.getDB().getLastError().get("err") == null);
repo.saveCenter(two);
assertTrue(datastore.getDB().getLastError().get("err") == null);
List<String> names = repo.getCentersNames();
assertTrue(names.size() == 2);
assertTrue(names.get(1).equals(two.getName()));
assertTrue(names.get(0).equals(one.getName()));
repo.getCollection().drop();
}