StaticResourceLoader { public static byte[] getData(final StaticResourceDir resourceDir, final String fileName) throws IOException { return readAllBytes(Paths.get(HOLMES_HOME.getValue(), RESOURCE_PATH, resourceDir.getValue(), fileName)); } private  StaticResourceLoader(); static byte[] getData(final StaticResourceDir resourceDir, final String fileName); static Icon getUpnpIcon(final UpnpIcon icon);  }
@Test public void testGetData() throws IOException { byte[] data = StaticResourceLoader.getData(UPNP, "icon-32.png"); assertNotNull(data); }
@Test(expected = IOException.class) public void testGetBadData() throws IOException { StaticResourceLoader.getData(SYSTRAY, "bad_resource.png"); }