@@ -0,0 +1,1046 @@
+package org.camunda.bpm.cockpit.plugin.acm;%0A%0Aimport org.camunda.bpm.model.cmmn.impl.instance.HumanTaskImpl;%0Aimport org.camunda.bpm.model.xml.instance.ModelElementInstance;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0Aimport org.mockito.Mockito;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class DetailedCaseExecutionTest %7B%0A%0A  private final DetailedCaseExecution testee = new DetailedCaseExecution(%22%22, %22%22, %22%22, %22%22, true, true, false);%0A%0A  @Rule%0A  public ExpectedException thrown = ExpectedException.none();%0A%0A  @Test%0A  public void testDispatch() %7B%0A    testee.enrichType(Mockito.mock(HumanTaskImpl.class));%0A    assertEquals(DetailedCaseExecution.Type.HUMANTASK, testee.getType());%0A  %7D%0A%0A  @Test%0A  public void testDispatchError() %7B%0A    final ModelElementInstance type = Mockito.mock(ModelElementInstance.class);%0A    thrown.expectMessage(%22Unknown model element of type %22 + type.getClass().getName() + %22 detected.%22);%0A    thrown.expect(IllegalStateException.class);%0A%0A    testee.enrichType(type);%0A  %7D%0A%0A%7D%0A

Test implemented