### Question:
WikiTableConfigurationFactory implements IWikiTableConfigurationFactory { @Override public synchronized void replaceUserSpecificConfigurations(List<IWikiTableConfiguration> config){ this.userSpecificConfigurations.clear(); for (IWikiTableConfiguration aConfig : config) { addUserSpecificConfigurations(aConfig); } } WikiTableConfigurationFactory(); @Override synchronized List<IWikiTableConfiguration> getConfigurations(); @Override synchronized List<IWikiTableConfiguration> getUserSpecificConfigurations(); @Override synchronized List<IWikiTableConfiguration> getBuildInConfigurations(); static synchronized IWikiTableConfigurationFactory getInstance(); @Override synchronized void addBuilInConfiguration(IWikiTableConfiguration additionalBuildInConfig); @Override synchronized void replaceBuilInConfiguration(List<IWikiTableConfiguration> configurations); @Override synchronized void replaceUserSpecificConfigurations(List<IWikiTableConfiguration> config); @Override void addUserSpecificConfigurations(IWikiTableConfiguration config); synchronized void setBuildInConfigurations(List<IWikiTableConfiguration> buildInConfigurations); synchronized void setUserSpecificConfigurations(List<IWikiTableConfiguration> userSpecificConfigurations); static List<IWikiTableConfiguration> merge(List<IWikiTableConfiguration> primary, List<IWikiTableConfiguration> secondary);  }### Answer:
@Test(expected=IllegalArgumentException.class) public void testAddReadOnlyConfigurationAsUserSpecific() { IWikiTableConfiguration mockConfig = mockHelper.createMock(IWikiTableConfiguration.class); expect(mockConfig.getName()).andStubReturn("B"); expect(mockConfig.isReadOnly()).andStubReturn(true); mockHelper.replayAll(); List<IWikiTableConfiguration> userSpecific = new ArrayList<IWikiTableConfiguration>(); userSpecific.add(mockConfig); classUnderTest.replaceUserSpecificConfigurations(userSpecific); }