@Test
public void byteConversions()
{
ByteConverter converter = new ByteConverter();
assertNull(converter.convertToObject("", Locale.US));
assertEquals(new Byte((byte)10), converter.convertToObject("10", Locale.US));
assertEquals("10", converter.convertToString((byte)10, Locale.US));
try
{
converter.convertToObject("whatever", Locale.US);
fail("Conversion should have thrown an exception");