assertThat( metadata.getNamedParameterNames() ).containsOnly( "name", "author" );
}
@Test
public void shouldIgnoreParametersInQuotes() {
ParameterMetadataBuilder builder = new Neo4jParameterMetadataBuilder();
ParameterMetadata metadata = builder.buildParameterMetadata(
"MATCH ( n:Poem { name: {name}, author:{author}, desc:'{desc}' } ) RETURN n"
);
assertThat( metadata.getNamedParameterNames() ).containsOnly( "name", "author" );
}