### Question:
ByteParser implements ConfigurationParser { @Override public Byte parseValue(String value, Class targetType) { if(value == null) throw new ConfigurationParserException("Could not parse 'null' to byte"); return Byte.parseByte(value); }  @Override Set<Class> getResponsibleClasses(); @Override Byte parseValue(String value, Class targetType);  }### Answer:
@Test public void parseValue() { assertEquals((byte)1, parser.parseValue("1", Byte.class)); assertEquals((byte)53, parser.parseValue("53", Byte.class)); assertEquals((byte)-69, parser.parseValue("-69", Byte.class)); }
@Test(expected = ConfigurationParserException.class) public void parseNull() { parser.parseValue(null, Byte.class); fail(); }
@Test(expected = NumberFormatException.class) public void parseInvalidNum() { parser.parseValue("-454282", Byte.class); fail(); }
@Test(expected = NumberFormatException.class) public void parseInvalidString() { parser.parseValue("s", Byte.class); fail(); }