  @Test
  public void testGetSchemasWithCtalogs() {

    try {
      when( database.getSchemas() ).thenReturn( null );
      when( database.getCatalogs() ).thenReturn( EXPECTED_SCHEMAS );

      String[] schemas = metaEditor.getSchemas( database, meta );

      assertArrayEquals( EXPECTED_SCHEMAS, schemas );
    } catch ( KettleDatabaseException e ) {
      fail( "Should not send KettleDatabaseException" );
    }
  }