public static void writeNullTerminatedString(String str, ByteArrayOutputStream out) throws IOException {
        out.write(str.getBytes());
        out.write(MSC.NULL_TERMINATED_STRING_DELIMITER);
    }
@Test
	public void testWriteNullTerminatedString() throws IOException {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		ByteHelper.writeNullTerminatedString("5", out);

		Assert.assertArrayEquals(new byte[] {53, 0}, out.toByteArray());
	}