ValidationAPI implements Serializable { public String getValidExpression() { if (isExpressionValid()) { return packageNames + expr; } return expr; } ValidationAPI(String expression, String propertiesFilePath); boolean isExpressionValid(); String getValidExpression(); DiagnosticCollector<JavaFileObject> transformCompiler(Map<String, Class<?>> schemaFields); DiagnosticCollector<JavaFileObject> filterCompiler(Map<String, Class<?>> schemaFields); List<String> getFieldNameList(Map<String, Class<?>> schemaFields); Object execute(); Object execute(String[] fieldNames, Object[] data); Object execute(String[] fieldNames, Object[] data, String validExpression); void init(String[] fieldNames,String[] fieldTypes); ValidationAPI init(String validExpression,Map<String,String> fieldMap); void init(String expression); Object exec(Object[] data); Object execute(String validExpression); static DiagnosticCollector<JavaFileObject> filterCompiler(String expression, String propertiesFilePath,
			Map<String, Class<?>> schemaFields, String externalJarPath); static DiagnosticCollector<JavaFileObject> transformCompiler(String expression, String propertiesFilePath,
			Map<String, Class<?>> schemaFields, String externalJarPath); static List<String> getFieldNameList(Map<String, Class<?>> schemaFields,String expression,String propertiesFilePath); static Object execute(String expression, String propertiesFilePath, String[] fieldNames, Object[] data); String getExpr(); void setExpr(String expr);  }
@Test public void itShouldImportDefauldPackage() { ValidationAPI validationAPI = new ValidationAPI("(1==1)?12:20", ""); Assert.assertTrue(validationAPI.getValidExpression().contains("import")); }