SoarModule { public void initialize(Adaptable context) { wm = Adaptables.require(getClass(), context, WorkingMemory.class); decider = Adaptables.require(getClass(), context, Decider.class); } SoarModule(); void initialize(Adaptable context); static WmeImpl add_module_wme(WorkingMemory wm, IdentifierImpl id, SymbolImpl attr, SymbolImpl value ); WmeImpl add_module_wme(IdentifierImpl id, SymbolImpl attr, SymbolImpl value); void remove_module_wme(WmeImpl w ); static Instantiation make_fake_instantiation(SymbolImpl state, Set<WmeImpl> conditions, List<SymbolTriple> actions);  }
@Test public void testCanInitializeWithAgentAsContext() { final Agent a = new Agent(); final SoarModule m = new SoarModule(); m.initialize(a); }