@@ -0,0 +1,1392 @@
+package no.deichman.services.kohaadapter;%0A%0Aimport static com.github.restdriver.clientdriver.ClientDriverRequest.Method.POST;%0Aimport com.github.restdriver.clientdriver.ClientDriverRule;%0Aimport static com.github.restdriver.clientdriver.RestClientDriver.giveEmptyResponse;%0Aimport static com.github.restdriver.clientdriver.RestClientDriver.onRequestTo;%0Aimport javax.ws.rs.core.HttpHeaders;%0Aimport static javax.ws.rs.core.Response.Status.OK;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport org.junit.Ignore;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Apublic class KohaAdapterImplTest %7B%0A%0A    private static final int CLIENTDRIVER_PORT = 9210;%0A%0A    private final KohaAdapterImpl kohaAdapter = new KohaAdapterImpl(%22http://localhost:%22 + CLIENTDRIVER_PORT);%0A%0A    @Rule%0A    public final ClientDriverRule svcMock = new ClientDriverRule(CLIENTDRIVER_PORT);%0A%0A    @Test%0A    public void should_have_default_constructor() %7B%0A        assertNotNull(new KohaAdapterImpl());%0A    %7D%0A%0A    @Test @Ignore(%22Work in progress%22)%0A    public void should_return_a_biblio() throws Exception %7B%0A        svcMock.addExpectation(%0A                onRequestTo(%22/cgi-bin/koha/svc/authentication%22).withMethod(POST),%0A                giveEmptyResponse().withStatus(OK.getStatusCode()).withHeader(HttpHeaders.SET_COOKIE, KohaAdapterImpl.SESSION_COOKIE_KEY + %22=huh%22));%0A%0A%0A        assertNotNull(kohaAdapter.getBiblio(%2299%22));%0A    %7D%0A%7D%0A

Add KohaAdapterImplTest (work in progress).