### Question:
JobEntryAnalyzerProvider extends BaseKettleMetaverseComponent implements IJobEntryAnalyzerProvider { @Override public void removeAnalyzer( IJobEntryAnalyzer analyzer ) { if ( analyzer != null ) { if ( jobEntryAnalyzers.contains( analyzer ) ) { try { jobEntryAnalyzers.remove( analyzer ); } catch ( UnsupportedOperationException e ) { } } Set<Class<? extends JobEntryInterface>> types = analyzer.getSupportedEntries(); if ( types != null ) { for ( Class<? extends JobEntryInterface> type : types ) { Set<IJobEntryAnalyzer> analyzerSet = null; if ( analyzerTypeMap.containsKey( type ) ) { analyzerSet = analyzerTypeMap.get( type ); analyzerSet.remove( analyzer ); if ( analyzerSet.size() == 0 ) { analyzerTypeMap.remove( type ); } } } } } }  @Override List<IJobEntryAnalyzer> getAnalyzers(); @Override List<IJobEntryAnalyzer> getAnalyzers( Collection<Class<?>> types ); void setJobEntryAnalyzers( List<IJobEntryAnalyzer> analyzers ); void setClonableJobEntryAnalyzers( List<IJobEntryAnalyzer> analyzers ); @Override void addAnalyzer( IJobEntryAnalyzer analyzer ); void addClonableAnalyzer( IClonableJobEntryAnalyzer analyzer ); @Override void removeAnalyzer( IJobEntryAnalyzer analyzer ); void removeClonableAnalyzer( IClonableJobEntryAnalyzer analyzer );  }### Answer:
@Test public void testRemoveAnalyzer() throws Exception { IJobEntryAnalyzer baseStepAnalyzer = mock( IJobEntryAnalyzer.class ); when( baseStepAnalyzer.getSupportedEntries() ).thenReturn( Sets.newSet( JobEntryInterface.class ) ); IJobEntryAnalyzer jobEntryTransAnalyzer = mock( IJobEntryAnalyzer.class ); when( jobEntryTransAnalyzer.getSupportedEntries() ).thenReturn( Sets.newSet( JobEntryTrans.class ) ); provider.setJobEntryAnalyzers( Lists.newArrayList( baseStepAnalyzer, jobEntryTransAnalyzer ) ); Set<IJobEntryAnalyzer> tableOutputStepAnalyzers = provider.analyzerTypeMap.get( JobEntryTrans.class ); assertNotNull( tableOutputStepAnalyzers ); assertEquals( tableOutputStepAnalyzers.size(), 1 ); provider.removeAnalyzer( jobEntryTransAnalyzer ); tableOutputStepAnalyzers = provider.analyzerTypeMap.get( JobEntryTrans.class ); assertNull( tableOutputStepAnalyzers ); }