TabFileParameter implements IStringConverter<List<FileGraphDelimiter>>, IParameterValidator { public FileGraphDelimiter build(String value) { File file; String name = ""; String delim = "COMMA"; String target = value; if (target.contains(DELIMITER_SEP_CHARACTER)) { String[] parts = target.split(DELIMITER_SEP); delim = parts[1]; target = parts[0]; } if (target.contains(NAME_SEP)) { String[] parts = target.split(NAME_SEP); name = parts[1]; target = parts[0]; } file = new File(target); return new FileGraphDelimiter(file, name, delim); }  @Override List<FileGraphDelimiter> convert(String value); FileGraphDelimiter build(String value); @Override void validate(String name, String value);  }
@Test public void testBuild() { System.out.println("build"); String value = "test.rdf|SPACE"; TabFileParameter instance = new TabFileParameter(); FileGraphDelimiter expResult = new FileGraphDelimiter(new File("test.rdf"), "", "SPACE"); FileGraphDelimiter result = instance.build(value); assertEquals(expResult, result); }