FileAuditorProvider implements Provider<Auditor> { @Override public Auditor get() { return new FileAuditor(auditFile); } FileAuditorProvider(String fileLoc);  FileAuditorProvider(File file); @Override Auditor get();  }
@Test public void testCreateProviderFromString() { FileAuditorProvider provider = new FileAuditorProvider(testFileName); assertNotNull(provider.get()); assertTrue(provider.get() instanceof FileAuditor); }
@Test public void testCreateProviderFromFile() { FileAuditorProvider provider = new FileAuditorProvider(new File(testFileName)); assertNotNull(provider.get()); assertTrue(provider.get() instanceof FileAuditor); }