### Question:
StringParser implements ConfigurationParser { @Override public String parseValue(String value, Class targetType) { if(value == null) throw new ConfigurationParserException("Could not parse 'null' to string"); return value; }  @Override Set<Class> getResponsibleClasses(); @Override String parseValue(String value, Class targetType);  }### Answer:
@Test public void parseValue() { assertEquals("asdfadga11d54sfg#drfg$%&/(", parser.parseValue("asdfadga11d54sfg#drfg$%&/(", String.class)); }
@Test(expected = ConfigurationParserException.class) public void parseNull() { parser.parseValue(null, String.class); fail(); }