public void shouldNotAcceptAnythingButSocketCatcherResponder() throws IOException, InterruptedException {
SocketAccepter accepter = mock(SocketAccepter.class);
SocketServer server = new SocketCatcher(accepter, 1);
MockSocket socket = new MockSocket("GET /?responder=fake&ticket=1 HTTP/1.1\r\n\r\n");
server.serve(socket);
}
@Test(expected = IllegalArgumentException.class)
public void shouldNotAcceptAnythingButValidTicketNumber() throws IOException, InterruptedException {
SocketAccepter accepter = mock(SocketAccepter.class);