@Override
  public Set<String> getOutputResourceFields( ExcelOutputMeta meta ) {
    Set<String> fields = new HashSet<>();
    ExcelField[] outputFields = meta.getOutputFields();
    for ( int i = 0; i < outputFields.length; i++ ) {
      ExcelField outputField = outputFields[ i ];
      fields.add( outputField.getName() );
    }
    return fields;
  }
@Test
  public void testGetOutputResourceFields() throws Exception {
    ExcelField[] outputFields = new ExcelField[2];
    ExcelField field1 = mock( ExcelField.class );
    ExcelField field2 = mock( ExcelField.class );
    outputFields[0] = field1;
    outputFields[1] = field2;

    when( field1.getName() ).thenReturn( "field1" );
    when( field2.getName() ).thenReturn( "field2" );

    when( meta.getOutputFields() ).thenReturn( outputFields );

    Set<String> outputResourceFields = analyzer.getOutputResourceFields( meta );

    assertEquals( outputFields.length, outputResourceFields.size() );
    for ( ExcelField outputField : outputFields ) {
      assertTrue( outputResourceFields.contains( outputField.getName() ) );
    }
  }