JcrStringHelper { public static boolean isEncoded( String path ) { return !path.equals( pathDecode( path ) ); } private  JcrStringHelper(); static String fileNameEncode( String fileName ); static String fileNameEncode( String fileName, boolean useMultiByte ); static String idEncode( String id ); static String fileNameDecode( String encodedFileName ); static String fileNameDecode( String encodedFileName, boolean useMultiByte ); static String pathEncode( String path ); static String pathEncode( String path, boolean useMultiByte ); static String pathDecode( String encodedPath ); static String pathDecode( String encodedPath, boolean useMultiByte ); static boolean isMultiByteEncodingEnabled(); static void setMultiByteEncodingEnabled( boolean useMultiByteEncoding ); static boolean isEncoded( String path );  }
@Test public void testFileIsNotEncoded() { assertFalse( JcrStringHelper.isEncoded( PATH_TO_REPORT_NOT_ENCODED ) ); }
@Test public void testFileIsEncoded() { assertTrue( JcrStringHelper.isEncoded( PATH_TO_REPORT_ENCODED ) ); }