@Injection( name = "RETURN_AUTO_GENERATED_KEY" )
  public void metaSetReturningGeneratedKeys( String value ) {
    setReturningGeneratedKeys( "Y".equalsIgnoreCase( value ) );
  }
@Test
  public void metaSetReturningGeneratedKeys() {
    TableOutputMeta tableOutputMeta = new TableOutputMeta();
    DatabaseMeta databaseMeta = mock( DatabaseMeta.class );
    // isReturningGeneratedKeys uses database meta as part of its logic.
    doReturn( true ).when( databaseMeta ).supportsAutoGeneratedKeys();
    tableOutputMeta.setDatabaseMeta( databaseMeta );

    tableOutputMeta.metaSetReturningGeneratedKeys( "Y" );
    assertTrue( tableOutputMeta.isReturningGeneratedKeys() );
    tableOutputMeta.metaSetReturningGeneratedKeys( "N" );
    assertFalse( tableOutputMeta.isReturningGeneratedKeys() );
    tableOutputMeta.metaSetReturningGeneratedKeys( "Ynot" );
    assertFalse( tableOutputMeta.isReturningGeneratedKeys() );
  }