@Test
public void test5ByteUtf8Sequence() throws Exception {

  byte[] invalid = new byte[] {
      0x01, 0x02, (byte)0xf8, (byte)0x88, (byte)0x80,
      (byte)0x80, (byte)0x80, 0x04, 0x05 };
  try {
    UTF8.fromBytes(invalid);
    fail("did not throw an exception");
  } catch (UTFDataFormatException utfde) {
    GenericTestUtils.assertExceptionContains(
        "Invalid UTF8 at f88880808004", utfde);
  }
}