@Test
public void getResources() throws Exception {

    // load from context loader
    assertEquals(0, ClassLoaderUtil.getResources(null).length);
    URL[] urls = ClassLoaderUtil.getResources("META-INF/MANIFEST.MF");
    assertUnique(urls);
    // load from class referrer
    assertEquals(0, ClassLoaderUtil.getResources(null, getClass()).length);
    assertEquals(0, ClassLoaderUtil.getResources(null, (Class<?>) null).length);
    urls = ClassLoaderUtil.getResources("META-INF/MANIFEST.MF", getClass());
    assertUnique(urls);
    urls = ClassLoaderUtil.getResources("META-INF/MANIFEST.MF", (Class<?>) null);
    assertUnique(urls);
    // load from specified loader
    assertEquals(0, ClassLoaderUtil.getResources(null, getClass().getClassLoader()).length);
    assertEquals(0, ClassLoaderUtil.getResources(null, (ClassLoader) null).length);
    urls = ClassLoaderUtil.getResources("META-INF/MANIFEST.MF", getClass().getClassLoader());
    assertUnique(urls);
    urls = ClassLoaderUtil.getResources("META-INF/MANIFEST.MF", (ClassLoader) null);
    assertUnique(urls);
}