@Test
void shouldErrorWhenTypeIsWrong()
{

    // Given
    Map<String,Value> metadata = singletonMap( "db", value( 10L ) );
    // When
    Uncoercible error = assertThrows( Uncoercible.class, () -> extractDatabaseInfo( metadata ) );
    // Then
    assertThat( error.getMessage(), startsWith( "Cannot coerce INTEGER to Java String" ) );
}