@@ -0,0 +1,1537 @@
+package org.netmelody.cieye.server.response.responder.test;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.PrintStream;%0A%0Aimport org.jmock.Expectations;%0Aimport org.jmock.Mockery;%0Aimport org.junit.Test;%0Aimport org.netmelody.cieye.server.CiEyeServerInformationFetcher;%0Aimport org.netmelody.cieye.server.response.responder.CiEyeVersionResponder;%0Aimport org.simpleframework.http.Response;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0Apublic class CiEyeVersionResponderTest %7B%0A%0A    private final Mockery context = new Mockery();%0A    %0A    private final CiEyeServerInformationFetcher configFetcher = context.mock(CiEyeServerInformationFetcher.class);%0A    %0A    private final CiEyeVersionResponder ciEyeVersionResponder = new CiEyeVersionResponder(configFetcher);%0A    %0A    @Test public void%0A    providesJsonWithVersionInformation() throws IOException %7B%0A        final Response response = context.mock(Response.class);%0A        final ByteArrayOutputStream output = new ByteArrayOutputStream();%0A        final PrintStream printStream = new PrintStream(output);%0A%0A        context.checking(new Expectations() %7B%7B%0A            allowing(configFetcher).getVersion(); will(returnValue(%22myVersion%22));%0A            %0A            allowing(response).getPrintStream(); will(returnValue(printStream));%0A            ignoring(response);%0A        %7D%7D);%0A        %0A        ciEyeVersionResponder.writeTo(response);%0A        %0A        assertThat(output.toString(), is(%22%5C%22myVersion%5C%22%5Cn%22));%0A    %7D%0A%0A%7D%0A

add unit test for the version responder