@Before
public void setup() throws Exception {
options = new AgentOptions();
logger = new ExceptionRecorder();
serverSocket = new MockServerSocket();
controller = new TcpServerOutput(logger) {
@Override
protected ServerSocket createServerSocket(AgentOptions options)
throws IOException {
return serverSocket;
}