XmlConverter implements Converter { @SuppressWarnings("unused") public Resources fromString(String string) throws IOException { return fromReader(new StringReader(string)); }  @Override Resources fromReader(Reader reader); @SuppressWarnings("unused") Resources fromString(String string);  }
@Test(expected = IOException.class) public void testEmptyString() throws Exception { converter.fromString(""); }
@Test public void testFromString() throws Exception { assertNotNull(converter.fromString( "<?xml version=\"1.0\" encoding=\"utf-8\"?><resources><test name=\"max_speed\">75</test></resources>")); }