@Test
public void testCreateCaseFileInstanceForNotExistingCase() {

    assertThatExceptionOfType(CaseDefinitionNotFoundException.class)
            .isThrownBy(() -> caseService.newCaseFileInstance(deploymentUnit.getIdentifier(), "nonexisting", Collections.emptyMap()));
    assertThatExceptionOfType(CaseDefinitionNotFoundException.class)
            .isThrownBy(() -> caseService.newCaseFileInstance(deploymentUnit.getIdentifier(), "nonexisting", Collections.emptyMap(), Collections.emptyMap()));
}