@Override
    public String buildContext() {
        final ResourceDO after = (ResourceDO) getAfter();
        if (Objects.isNull(getBefore())) {
            return String.format("the resource [%s] is %s", after.getTitle(), StringUtils.lowerCase(getType().getType().toString()));
        }
        return String.format("the resource [%s] is %s : %s", after.getTitle(), StringUtils.lowerCase(getType().getType().toString()), contrast());
        
    }
@Test
    public void resourceDeleteBuildContextTest() {
        ResourceChangedEvent resourceDeleteEvent = new ResourceChangedEvent(after, after, EventTypeEnum.RESOURCE_DELETE, "test-operator");

        String typeStr = StringUtils.lowerCase(EventTypeEnum.RESOURCE_DELETE.getType().toString());
        String context = String.format("the resource [%s] is %s : %s", after.getTitle(), typeStr, "it no change");

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