@Test
void shouldDisallowMetadataWithIllegalValues()
{

    assertThrows( ClientException.class,
            () -> TransactionConfig.builder().withMetadata( singletonMap( "key", new InternalNode( 1 ) ) ) );
    assertThrows( ClientException.class,
            () -> TransactionConfig.builder().withMetadata( singletonMap( "key", new InternalRelationship( 1, 1, 1, "" ) ) ) );
    assertThrows( ClientException.class,
            () -> TransactionConfig.builder().withMetadata( singletonMap( "key", new InternalPath( new InternalNode( 1 ) ) ) ) );
}