@Test
public void testCaseRoleAssignmentRemoved() throws JMSException {

    OrganizationalEntity entity = mock(OrganizationalEntity.class);
    when(entity.getId()).thenReturn("john");
    CaseFileInstanceImpl caseFile = new CaseFileInstanceImpl("TEST-01", "case");
    CaseRoleAssignmentEvent event = new CaseRoleAssignmentEvent("user", "TEST-01", caseFile, "owner", entity);
    
    logProducer.afterCaseRoleAssignmentRemoved(event);
    
    verify(message, times(1)).setStringProperty(eq("LogType"), eq("Case"));
    verify(message, times(1)).setIntProperty(eq("EventType"), eq(AFTER_CASE_ROLE_ASSIGNMENT_REMOVED_EVENT_TYPE));
    verify(producer, times(1)).setPriority(eq(4));
    verify(producer, times(1)).send(eq(message));
}