Plugin { public PluginControllerImpl createController(String standard, Tokenizer tokenizer) { return new PluginControllerImpl(standard, tokenizer); } Plugin(String documentType, String documentName); protected  Plugin(String documentType, String documentName, boolean validating); void init(); String getDocumentType(); String getDocumentName(); LoopDescriptor[] getLoopDescriptors(); LoopDescriptor query(String segment, String currentLoopStack, int currentLevel, Set<String> resultFlags); static int getCount(); @Override String toString(); void prepare(); boolean isValidating(); PluginControllerImpl createController(String standard, Tokenizer tokenizer); String getDocumentVersion(); PluginDiff compare(Plugin pluginB); static final String ANY_CONTEXT; static final String INITIAL_CONTEXT; static final String CURRENT; }
@Test public void canCreateController() { Tokenizer tokenizer = new EDITokenizer(new StringReader(""), null); PluginControllerImpl controller = plugin.createController("SomeStandard", tokenizer); assertNotNull(controller); }