### Question:
MongoFileInfoDao extends MongoDao<FileInfo, String> implements FileInfoDao { @Override public List<FileInfo> findAll() { return query().order("-created").asList(); } @Inject  MongoFileInfoDao(Datastore datastore); @Override List<FileInfo> findAll(); @Override List<FileInfo> findByContentHash(String contentHash);  }### Answer:
@Test public void findAllFiles() { List<FileInfo> files = fileInfoDao.findAll(); assertEquals("There should be 3 files in the datastore", 3, files.size()); assertEquals("The first item in the fileInfo list should have and id of \"first-file\"", "third-file", files.get(0).getId()); assertEquals("The second item in the fileInfo list should have and id of \"second-file\"", "second-file", files.get(1).getId()); assertEquals("The third item in the fileInfo list should have and id of \"third-file\"", "first-file", files.get(2).getId()); }