### Question:
ResourceUtil { public static String getResourceAsString(String path) throws WrapException { assertNotNull(path); assertTrue(path.length() > 0); InputStream inputStream = getResourceAsStream(path); if (inputStream == null) { return null; } return IOUtil.readAsString(inputStream); }  static URL getResource(String path); static InputStream getResourceAsStream(String path); static String getResourceAsString(String path);  }### Answer:
@Test public void testGetResourceAsString() throws Exception { String path = getClass().getName().replace(".", "/") + ".txt"; String value = ResourceUtil.getResourceAsString(path); assertEquals("aaa", value); }