### Question:
KohaAdapterImpl implements KohaAdapter { @Override public String retrieveBiblioExpanded(String recordId) { if (sessionCookie == null) { login(); } Response response = requestExpandedBiblio(recordId); if (response.getStatus() == FORBIDDEN.getStatusCode() || response.getStatus() == UNAUTHORIZED.getStatusCode()) { login(); response = requestExpandedBiblio(recordId); } if (OK.getStatusCode() != response.getStatus()) { throw new RuntimeException("Unexpected response when requesting expanded biblio: http status: " + response.getStatusInfo()); } return response.readEntity(String.class); } KohaAdapterImpl(String kohaPort);   KohaAdapterImpl(); @Override Model getBiblio(String recordId); @Override Response updateRecord(String recordId, MarcRecord marcRecord); @Override void deleteBiblio(String recordId); @Override String getBiblioFromItemNumber(String itemNumber); @Override String getExpandedRecordFromItemNumber(String itemNumber); @Override String getCheckouts(String userId); @Override String getHolds(String userId); @Override String createNewBiblio(); @Override String createNewBiblioWithMarcRecord(MarcRecord marcRecord); @Override String retrieveBiblioExpanded(String recordId); @Override String retrieveBiblioMARCXML(String recordId);  }### Answer:
@Test public void should_return_raw_marc_xml() throws IOException { kohaAPIMock.addLoginExpectation(); String expected = stringFromClassPathResource("ragde.marcxml"); kohaAPIMock.addGetBiblioExpandedExpectation("626460", expected); assertEquals(expected, kohaAdapter.retrieveBiblioExpanded("626460")); }