### Question:
PentahoWebjarsTransformer implements ArtifactUrlTransformer { @Override public boolean canHandle( File file ) { if ( file == null || file.getName() == null || !file.getName().endsWith( ".jar" ) ) { return false; } ZipFile zipFile = null; try { zipFile = new ZipFile( file ); Enumeration<? extends ZipEntry> entries = zipFile.entries(); while ( entries.hasMoreElements() ) { String name = entries.nextElement().getName(); if ( name.endsWith( "-requirejs.js" ) ) { return true; } } } catch ( IOException e ) { logger.error( e.getMessage(), e ); } finally { if ( zipFile != null ) { try { zipFile.close(); } catch ( IOException e ) { } } } return false; }  @Override URL transform( URL url ); @Override boolean canHandle( File file );  }### Answer:
@Test public void testCanHandle() throws Exception { PentahoWebjarsTransformer trans = new PentahoWebjarsTransformer(); assertTrue( trans.canHandle( new File( "src/test/resources/testInput.jar" ) ) ); assertFalse( trans.canHandle( new File( "src/main/resources/blueprint-template.xml" ) ) ); }