@Test
public void testBytesToCodePoint() {

  try {
    ByteBuffer bytes = ByteBuffer.wrap(new byte[] {-2, 45, 23, 12, 76, 89});                                      
    Text.bytesToCodePoint(bytes);
    assertTrue("testBytesToCodePoint error !!!", bytes.position() == 6 );
  } catch (BufferUnderflowException ex) {
    fail("testBytesToCodePoint unexp exception");
  } catch (Exception e) {
    fail("testBytesToCodePoint unexp exception");
  }    
}