public static String escapeJava(String str) {
        return escapeJavaStyleString(str, false);
    }
@Test
    void testJavaEscaping() {
        assertThat(EncodingUtils.escapeJava("\\hello\"world'space/"))
                .isEqualTo("\\\\hello\\\"world'space/");
    }