public void testSetSerializedVariableValueMismatchingTypeName() throws JSONException {
ProcessInstance instance = runtimeService.startProcessInstanceByKey("oneTaskProcess");
JsonSerializable bean = new JsonSerializable("a String", 42, true);
String beanAsJson = bean.toExpectedJsonString();
SerializedObjectValueBuilder serializedValue = serializedObjectValue(beanAsJson)
.serializationDataFormat(JSON_FORMAT_NAME)
.objectTypeName("Insensible type name."); // < not a valid type name
runtimeService.setVariable(instance.getId(), "simpleBean", serializedValue);