### Question:
PluginLibraryFileHandler implements PluginFileHandler { @Override public boolean handles( String fileName ) { return fileName != null && fileName.contains( LIB ) && fileName.endsWith( JAR ); }  @Override boolean handles( String fileName ); @Override boolean handle( String relativePath, byte[] file, PluginMetadata pluginMetadata ); static final Pattern LIB_PATTERN; static final String JAR; static final String LIB; }### Answer:
@Test public void testHandles() throws Exception { assertFalse( pluginLibraryFileHandler.handles( "test.jar" ) ); assertFalse( pluginLibraryFileHandler.handles( "root/test.jar" ) ); assertTrue( pluginLibraryFileHandler.handles( "root/lib/test.jar" ) ); assertTrue( pluginLibraryFileHandler.handles( "root/branch/lib/test.jar" ) ); }