* {@link RuntimeService#startProcessInstanceById(String, Map)} throws an {@link ProcessEngineException}, if a definition with the given id does not exist.
*/
@Test
public void testUnsuccessfulInstantiation_ByKey() {
when(runtimeServiceMock.startProcessInstanceById(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), anyString(), anyString(), Matchers.<Map<String, Object>>any()))
.thenThrow(new ProcessEngineException("expected exception"));
given().pathParam("key", MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY)
.contentType(POST_JSON_CONTENT_TYPE).body(EMPTY_JSON_OBJECT)
.then().expect()
.statusCode(Status.INTERNAL_SERVER_ERROR.getStatusCode()).contentType(ContentType.JSON)