@Test
public void testGetResources()
    throws Exception
{

    try (IsolatedClassRealm realm = new IsolatedClassRealm( IsolatedClassRealmTest.class.getClassLoader() ))
    {
        realm.addJarDirectory( resourceDir );
        realm.getResource( "secret-file" );
        Enumeration<URL> resources = realm.getResources( "secret-file" );
        assertTrue( resources.hasMoreElements() );
        resources.nextElement();
        assertTrue( resources.hasMoreElements() );
    }
}