### Question:
CharField extends AbstractField<Character> { @Override public byte[] getBytes() { return new byte[]{(byte) value}; } CharField(int tagNum, char value); @Override Character getValue(); @Override byte[] getBytes(); char charValue(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testGetBytes() { byte[] bytes = charField.getBytes(); assertEquals(1, bytes.length); assertEquals((byte) ch, bytes[0]); }