ClasspathResources { public static String text(String path) { return new String(bytes(path), UTF_8); }  static String text(String path); static byte[] bytes(String path); static InputStream stream(String path);  }
@Test void text() { String text = ClasspathResources.text("classpath-resource-test/resource.txt"); assertThat(text).isEqualTo("value"); }