GeosupportFunction implements Function { public boolean isTwoWorkAreas() { return this.workAreaTwo != null; } GeosupportFunction(String id, WorkArea workAreaOne, WorkArea workAreaTwo, Geoclient geoclient, Configuration configuration);  GeosupportFunction(String id, WorkArea workAreaOne, WorkArea workAreaTwo, Geoclient geoclient);  GeosupportFunction(String id, WorkArea workAreaOne, Geoclient geoclient); @Override Map<String, Object> call(Map<String, Object> parameters); String getId(); WorkArea getWorkAreaOne(); WorkArea getWorkAreaTwo(); @Override String toString(); boolean isTwoWorkAreas(); Configuration getConfiguration();  }
@Test public void testIsTwoWorkAreas() { assertTrue(function_twoWorkAreas.isTwoWorkAreas()); assertFalse(function_oneWorkArea.isTwoWorkAreas()); }