### Question:
ConditionResult { public boolean isConditionTrue() { return conditionTrue; } ConditionResult(boolean aConditionTrue, GameEvent aEvent, GameObjectInstance[] aAffectedInstances); boolean isConditionTrue(); GameObjectInstance[] getAffectedInstances(); GameEvent getEvent(); static final ConditionResult NOT_FULFILLED; }### Answer:
@Test public void testIsConditionTrue() throws Exception { GameEvent theEvent = mock(GameEvent.class); GameObjectInstance[] theInstances = new GameObjectInstance[0]; ConditionResult thePositive = new ConditionResult(true, theEvent, theInstances); assertTrue(thePositive.isConditionTrue()); assertSame(theEvent, thePositive.getEvent()); assertSame(theInstances, thePositive.getAffectedInstances()); ConditionResult theNegative = new ConditionResult(false, theEvent, theInstances); assertFalse(theNegative.isConditionTrue()); assertSame(theEvent, theNegative.getEvent()); assertSame(theInstances, theNegative.getAffectedInstances()); }