private AbstractAgent agent;
@Before
public void setUp() {
Map<List<Percept>, Action> perceptSequenceActions = new HashMap<List<Percept>, Action>();
perceptSequenceActions.put(createPerceptSequence(new DynamicPercept(
"key1", "value1")), ACTION_1);
perceptSequenceActions.put(
createPerceptSequence(new DynamicPercept("key1", "value1"),
new DynamicPercept("key1", "value2")), ACTION_2);
perceptSequenceActions.put(
createPerceptSequence(new DynamicPercept("key1", "value1"),
new DynamicPercept("key1", "value2"),
new DynamicPercept("key1", "value3")), ACTION_3);
agent = new MockAgent(new TableDrivenAgentProgram(
perceptSequenceActions));
}