@Test
void mapRepresentationIsUnmodifiable()
{

    URI uri = URI.create( "neo4j://localhost:7687/?key1=value1" );
    RoutingContext context = new RoutingContext( uri );
    Map<String,String> expectedMap = new HashMap<>();
    expectedMap.put( "key1", "value1" );
    expectedMap.put( "address", "localhost:7687" );
    assertEquals( expectedMap, context.toMap() );
    assertThrows( UnsupportedOperationException.class, () -> context.toMap().put( "key2", "value2" ) );
    assertEquals( expectedMap, context.toMap() );
}