### Question:
AppraiserPluginManager { public List<AppraiserPlugin> getAppraisers() { return Collections.unmodifiableList(appraiserPlugins); }  List<AppraiserPlugin> getAppraisers();  }### Answer:
@Test public void pluginListPopulatedUsingSpringInjection() { Assert.assertNotNull(appraiserPluginManager, "Verify spring is configured to autowire the AppraiserPluginManager"); List<AppraiserPlugin> pluginList = appraiserPluginManager.getAppraisers(); Assert.assertNotNull(pluginList); Assert.assertEquals(pluginList.size(), 1, "Unexpected plugin count in list"); Assert.assertTrue(pluginList.get(0) instanceof TestAppraiserPlugin, "First plugin in list was not a " + TestAppraiserPlugin.class); }
@Test public void pluginListEmptyWithoutInjectedPlugins() { AppraiserPluginManager emptyManager = new AppraiserPluginManager(); Assert.assertTrue(emptyManager.getAppraisers().isEmpty(), "collector list should be empty with no configured plugins"); }