### Question:
BoltResponseMessageWriterV1 implements BoltResponseMessageWriter { public void flush() throws IOException { packer.flush(); } BoltResponseMessageWriterV1( PackProvider packerProvider, PackOutput output, LogService logService ); @Override void write( ResponseMessage message ); void flush();  }### Answer:
@Test public void shouldFlush() throws Exception { PackOutput output = mock( PackOutput.class ); Neo4jPack.Packer packer = mock( Neo4jPack.Packer.class ); BoltResponseMessageWriterV1 writer = newWriter( output, packer ); writer.flush(); verify( packer ).flush(); }