CharSequenceToUTF8Local { public static CharSequenceToUTF8 get() { return tpr.get(); }  static CharSequenceToUTF8 get();  }
@Test public void testAppendToBytes() { String username="nathan"; String password="password"; byte[] data = CharSequenceToUTF8Local.get().convert(username).append(":").append(password).asBytes(); assertTrue(Arrays.equals((username+":"+password).getBytes(), data)); }