@Test
public void testResourceToStringResource() throws Exception {

    URL resource = TestFileUtils.getTestFileURL("/Misc/test_file_for_resource_to_string_misc.txt");
    String s1 = Misc.resourceToString(resource);
    TestAssertions.assertEqualsIgnoreWhitespaces("<!doctype txt>this is a text file.\nnew line in the text file.", s1);
    assertFalse(s1.isEmpty());
}