### Question:
MasterInstrumenter extends CompositeInstrumenter { @Override public String getDescription() { final String result = super.getDescription(); if (result.length() == 0) { return "NO INSTRUMENTER COULD BE LOADED"; } return result.toString(); } MasterInstrumenter(List<Instrumenter> instrumenters); @Override Object createInstrumentedProxy(Test test,
                                                  Recorder recorder,
                                                  Object target); @Override boolean instrument(Test test,
                                      Recorder recorder,
                                      Object target,
                                      InstrumentationFilter filter); @Override String getDescription();  }### Answer:
@Test public void testGetDescription() throws Exception { when(m_instrumenter1.getDescription()).thenReturn("I1"); when(m_instrumenter2.getDescription()).thenReturn("I2"); final Instrumenter instrumenter = new MasterInstrumenter(asList(m_instrumenter1, m_instrumenter2)); assertEquals("I1; I2", instrumenter.getDescription()); final Instrumenter instrumenter2 = new MasterInstrumenter(asList(m_instrumenter1)); assertEquals("I1", instrumenter2.getDescription()); final List<Instrumenter> e = emptyList(); assertEquals("NO INSTRUMENTER COULD BE LOADED", new MasterInstrumenter(e).getDescription()); }