### Question:
MongoResourceDao extends MongoDao<Resource, String> implements ResourceDao { @Override public List<Resource> findAll() { return query().order("label").asList(); } @Inject  MongoResourceDao(Datastore datastore); @Override List<Resource> findAll(); @Override List<Resource> findAllWithFramework(String framework); @Override Resource findByFrameworkAndName(String framework, String name);  }### Answer:
@Test public void findAllResources() { List<Resource> resources = resourceDao.findAll(); assertEquals("There should be 3 resources in the datastore", 3, resources.size()); assertEquals("The first item in the resource list should have and id of \"first\"", "first", resources.get(0).getId()); assertEquals("The second item in the resource list should have and id of \"second\"", "second", resources.get(1).getId()); assertEquals("The third item in the resource list should have and id of \"third\"", "third", resources.get(2).getId()); }