### Question:
SuccessMessageEncoder implements ResponseMessageEncoder<SuccessMessage> { @Override public void encode( Neo4jPack.Packer packer, SuccessMessage message ) throws IOException { packer.packStructHeader( 1, message.signature() ); packer.pack( message.meta() ); } SuccessMessageEncoder(); @Override void encode( Neo4jPack.Packer packer, SuccessMessage message );  }### Answer:
@Test void shouldEncodeSuccessMessage() throws Throwable { Neo4jPack.Packer packer = mock( Neo4jPack.Packer.class ); SuccessMessageEncoder encoder = new SuccessMessageEncoder(); MapValue meta = mock( MapValue.class ); encoder.encode( packer, new SuccessMessage( meta ) ); verify( packer ).packStructHeader( anyInt(), eq( SuccessMessage.SIGNATURE ) ); verify( packer ).pack( meta ); }