@Test
void shouldEncodeRunMessage() throws Exception
{

    Map<String,Value> params = singletonMap( "answer", value( 42 ) );
    encoder.encode( new RunMessage( "RETURN $answer", params ), packer );
    InOrder order = inOrder( packer );
    order.verify( packer ).packStructHeader( 2, RunMessage.SIGNATURE );
    order.verify( packer ).pack( "RETURN $answer" );
    order.verify( packer ).pack( params );
}