MimeTypeManagerImpl implements MimeTypeManager { @Override public MimeType getMimeType(final String fileName) { return mimeTypeDao.getMimeType(fileName); } @Inject  MimeTypeManagerImpl(final MimeTypeDao mimeTypeDao); @Override MimeType getMimeType(final String fileName); @Override boolean isMimeTypeCompliant(final MimeType mimeType, final Collection<String> availableMimeTypes);  }
@Test public void testGetMimeType() { MimeTypeManager mimeTypeManager = new MimeTypeManagerImpl(new MimeTypeDaoImpl("/mimetypes.properties")); assertNotNull(mimeTypeManager.getMimeType("someVideo.avi")); assertNull(mimeTypeManager.getMimeType("someVideo.badExtension")); }