### Question:
ResourcePathToURITransformer implements
        Transformer<String, URI> { @Override public URI transform(final String resourcePath) throws TransformationException { if (resourcePath == null) { throw new IllegalArgumentException( "Path to the resource must not be null."); } try { return getClass().getResource(resourcePath).toURI(); } catch (final Throwable cause) { throw new TransformationException(cause); } }  @Override URI transform(final String resourcePath);  }### Answer:
@Test(expectedExceptions=IllegalArgumentException.class) public void testTransformIfNullPath() throws Exception { transformer.transform(null); }
@Test(expectedExceptions=TransformationException.class) public void testTransformIfIncorrectPath() throws Exception { transformer.transform("/incorrect/path"); }
@Test public void testTransform() throws Exception { final URI uri = transformer.transform("/mockSchema.xsd"); assertNotNull("Returned URI is null.", uri); }