@Test
public void testFindByText() {

	IdmNotificationAttachmentDto attachmentOne = createDto();
	createDto(); // other
	//
	IdmNotificationAttachmentFilter filter = new IdmNotificationAttachmentFilter();
	filter.setText(attachmentOne.getName());
	List<IdmNotificationAttachmentDto> attachments = find(filter);
	Assert.assertEquals(1, attachments.size());
	Assert.assertTrue(attachments.stream().anyMatch(r -> r.getId().equals(attachmentOne.getId())));
}