### Question:
CharArrayParser implements ConfigurationParser { @Override public char[] parseValue(String value, Class targetType) { if(value == null) throw new ConfigurationParserException("Could not parse 'null' to char[]"); return value.toCharArray(); }  @Override Set<Class> getResponsibleClasses(); @Override char[] parseValue(String value, Class targetType);  }### Answer:
@Test public void parseValue() { assertTrue(Arrays.equals("sss1".toCharArray(), (char[])parser.parseValue("sss1", Character[].class))); assertTrue(Arrays.equals("äd aqsd".toCharArray(), (char[])parser.parseValue("äd aqsd", Character[].class))); assertTrue(Arrays.equals("-9".toCharArray(), (char[])parser.parseValue("-9", Character[].class))); }
@Test(expected = ConfigurationParserException.class) public void parseNull() { parser.parseValue(null, Character[].class); fail(); }