### Question:
JaxRsAmanuensis { public void doIt() { CodeDocumentation codeDoc = codeDocumentationReader.readAll(); documentationWriter.write(codeDoc); } JaxRsAmanuensis(CodeDocumentationReader codeDocumentationReader, DocumentationWriter documentationWriter); void doIt();  }### Answer:
@Test public void read_doc_and_then_write() { final CodeDocumentation aCodeDocumentation = new CodeDocumentation("my overview"); context.checking(new Expectations() {{ oneOf(codeDocumentationReader).readAll(); will(returnValue(aCodeDocumentation)); oneOf(documentationWriter).write(aCodeDocumentation); }}); amanuensis.doIt(); }