when(componentDao.getComponent()).thenReturn(component);
Base64Wrapper wrapper = new Base64Wrapper();
byte[] iconBytes = wrapper.decodeB64Bytes(ICON);
when(imageService.preProcessAndEncodeInString64(iconBytes)).thenReturn(ICON_IN_ICO_FORMAT);
ComponentInformation information = new ComponentInformation();
information.setId(COMPONENT_ID);
information.setName(FORUM_NAME);
information.setDescription(FORUM_DESCRIPTION);
information.setLogoTooltip(FORUM_LOGO_TOOLTIP);
information.setLogo(logo);
information.setIcon(ICON);
componentService.setComponentInformation(information);
verify(component).setName(FORUM_NAME);
verify(component).setDescription(FORUM_DESCRIPTION);