StyleRepositoryServiceImpl implements StyleRepositoryService { @Override public void saveStyle(Style data) { if (data == null) { throw new RiceIllegalArgumentException("The given style was null."); } StyleBo styleToUpdate = StyleBo.from(data); saveStyleBo(styleToUpdate); }  void setStyleXmlParser(StyleXmlParser styleXmlParser); @Override Style getStyle(String styleName); @Override void saveStyle(Style data); @Override List<String> getAllStyleNames(); DataObjectService getDataObjectService(); @Required void setDataObjectService(DataObjectService dataObjectService); @Required void setStyleDao(StyleDao styleDao);  }
@Test(expected = IllegalArgumentException.class) public void testSaveStyle_nullStyle() throws Exception{ getStyleRepositoryService().saveStyle(null); }