@Test
public void testGetResource()
    throws Exception
{

    try (IsolatedClassRealm realm = new IsolatedClassRealm( IsolatedClassRealmTest.class.getClassLoader() ))
    {
        realm.addJar( jarPath );
        try (InputStream resourceStream = realm.getResourceAsStream( "secret-file" ))
        {
            assertNotNull( resourceStream );
            int read = resourceStream.read();
            assertEquals( '#', read );
        }
    }
}