@Test
public void testbytesToCodePointWithInvalidUTF() {

  try {                 
    Text.bytesToCodePoint(ByteBuffer.wrap(new byte[] {-2}));
    fail("testbytesToCodePointWithInvalidUTF error unexp exception !!!");
  } catch (BufferUnderflowException ex) {      
  } catch(Exception e) {
    fail("testbytesToCodePointWithInvalidUTF error unexp exception !!!");
  }
}