### Question:
JavaFileProjectResourcePathResolver implements ModuleResourcePathResolver { @Override public boolean accept(String resourceType) { return "java".equals(resourceType); } JavaFileProjectResourcePathResolver(); @Override int getPriority(); @Override boolean accept(String resourceType); @Override Path resolveDefaultPath(Package pkg);  }### Answer:
@Test public void testAcceptJavaFile() { assertTrue( resolver.accept( "java" ) ); }
@Test public void testDenyNonJavaFile() { assertFalse( resolver.accept( "txt" ) ); assertFalse( resolver.accept( null ) ); assertFalse( resolver.accept( "" ) ); }