JUnit test case for class Agent