@Test
public void testGetSupportedOutputTypes() throws Exception {

  List<String> expectations = new ArrayList<String>();
  expectations.add( "table/html;page-mode=page" );
  expectations.add( "table/html;page-mode=stream" );
  expectations.add( "pageable/pdf" );
  expectations.add( "table/excel;page-mode=flow" );
  expectations.add( "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;page-mode=flow" );
  expectations.add( "table/csv;page-mode=stream" );
  expectations.add( "table/rtf;page-mode=flow" );
  expectations.add( "pageable/text" );
  Set<Map.Entry<String, String>> outputTypes = roh.getSupportedOutputTypes();
  List<Object> outputs = Arrays.asList( outputTypes.toArray() );
  List<String> expectedOutputs = new ArrayList<String>();
  for ( int i = 0; i < outputTypes.size(); i++ ) {
    expectedOutputs.add( ( (Map.Entry) outputs.get( i ) ).getKey().toString() );
  }
  for ( String expectation : expectations ) {
    assertTrue( expectedOutputs.contains( expectation ) );
  }
}