PGETaskInstance implements WorkflowTaskInstance { protected ConfigFilePropertyAdder loadPropertyAdder(String propertyAdderClasspath) { logger.debug("Loading property adder: {}", propertyAdderClasspath); return createConfigFilePropertyAdder(propertyAdderClasspath, logger); } protected  PGETaskInstance(); @Override void run(Metadata metadata, WorkflowTaskConfiguration config); String getWorkflowInstId(); void setWorkflowInstId(String workflowInstId); void setWmClient(WorkflowManagerClient wmClient); @Override void finalize();  }
@Test public void testLoadPropertyAdders() throws Exception { PGETaskInstance pgeTask = createTestInstance(); ConfigFilePropertyAdder propAdder = pgeTask .loadPropertyAdder(MockConfigFilePropertyAdder.class .getCanonicalName()); assertNotNull(propAdder); assertTrue(propAdder instanceof MockConfigFilePropertyAdder); }