SourceDao { protected String createConverterImportString(String converterClassName) { if(converterClassName.contains(".")) { return "import " + converterClassName + ";"; } else { return "import com.vaadin.data.util.converter." + converterClassName+";"; } } SourceDao(Log log); BeanDescription processJavaInput(InputStream in);  }
@Test public void testCreateConverterImportString() { assertEquals("import com.vaadin.data.util.converter.StringToBigDecimalConverter;", daoUnderTest.createConverterImportString("StringToBigDecimalConverter")); assertEquals("import net.vergien.vaadin.CustomConverter;", daoUnderTest.createConverterImportString("net.vergien.vaadin.CustomConverter")); }