@Test
public void shouldReplaceSohWithBar()
        throws Exception
{

    final byte[] source = "A test string \u0001 containing \u0001 ASCII SOH\u0001".getBytes(StandardCharsets.US_ASCII);
    final byte[] expected = "A test string | containing | ASCII SOH|".getBytes(StandardCharsets.US_ASCII);
    final byte soh = (byte) 1;
    final byte bar = (byte) 124;
    ByteUtil.replace(source, 0, source.length, soh, bar);
    Assert.assertArrayEquals(expected, source);
}