@Override
    public String buildContext() {
        final String selector = ((Collection<?>) getSource())
                .stream()
                .map(s -> ((ResourceDO) s).getTitle())
                .collect(Collectors.joining(","));
        return String.format("the resource[%s] is %s", selector, StringUtils.lowerCase(getType().getType().toString()));
    }
@Test
    public void resourceChangeBuildContextTest() {
        BatchResourceDeletedEvent batchResourceDeletedEvent = new BatchResourceDeletedEvent(Arrays.asList(one, two), "test-operator");

        String context = String.format("the resource[%s] is %s",
                one.getTitle() + "," + two.getTitle(), StringUtils.lowerCase(EventTypeEnum.RESOURCE_DELETE.getType().toString()));

        assertEquals(context, batchResourceDeletedEvent.buildContext());
    }