### Question:
AptUtils { public static String encodeFragment( String text ) { if ( text == null ) { return null; } return linkToKey( text ); } private  AptUtils(); static String encodeFragment( String text ); static boolean isExternalLink( String link ); static boolean isInternalLink( String link ); static boolean isLocalLink( String link ); static String linkToKey( String text ); static String encodeAnchor( String id );  }### Answer:
@SuppressWarnings( "deprecation" ) @Test public void testEncodeFragment() { assertNull( AptUtils.encodeFragment( null ) ); assertEquals( "abc0d", AptUtils.encodeFragment( "a B&c0)D" ) ); }