### Question:
CharacterConverter implements Function<String,Character> { @Override public Character apply( String value ) throws RuntimeException { if ( value.startsWith( "\\" ) && value.length() > 1 ) { String raw = value.substring( 1 ); try { return (char) Integer.parseInt( raw ); } catch ( NumberFormatException e ) { if ( raw.equals( "t" ) ) { return Configuration.TABS.delimiter(); } } } else if ( value.equals( "TAB" ) ) { return Configuration.TABS.delimiter(); } else if ( value.length() == 1 ) { return value.charAt( 0 ); } throw new IllegalArgumentException( "Unsupported character '" + value + "'" ); }  @Override Character apply( String value );  }### Answer:
@Test void shouldNotAcceptRandomEscapedStrings() { assertThrows( IllegalArgumentException.class, () -> converter.apply( "\\bogus" ) ); }
@Test void shouldNotAcceptStrings() { assertThrows( IllegalArgumentException.class, () -> converter.apply( "bogus" ) ); }