* Tests transform.
*/
@Test
public void testTransform()
{
RequestTransformer sut = new SetCurrentUserNotificationPreferencesTransformer(notifierTypes, categories);
ActionContext ctx = TestContextCreator.createPrincipalActionContext(
(Serializable) Arrays.asList(dto1, dto2, dto3), null, PERSON_ID);
SetUserNotificationFilterPreferencesRequest result = (SetUserNotificationFilterPreferencesRequest) sut
.transform(ctx);
assertEquals(PERSON_ID, result.getPersonId());
Collection<NotificationFilterPreferenceDTO> list = result.getPrefList();
assertEquals(1, list.size());