@Test
public void testFindBytes() {

  byte[] data = "Hello, world!".getBytes();
  assertEquals("Did not find first occurrence of pattern 'ello'", 1,
      UTF8ByteArrayUtils.findBytes(data, 0, data.length, "ello".getBytes()));
  assertEquals(
      "Substring starting at position 2 does not contain pattern 'ello'", -1,
      UTF8ByteArrayUtils.findBytes(data, 2, data.length, "ello".getBytes()));
}