@Test
public void executeWithResource() {

    SetDMNActiveModelCommand setDMNActiveModelCommand = new SetDMNActiveModelCommand(resource.getSourcePath());
    assertThatThrownBy(() -> setDMNActiveModelCommand.execute(registryContext))
            .isInstanceOf(IllegalStateException.class)
            .hasMessage("There is no DMNRuntime available");
    registryContext.register(DMNRuntime.class, dmnRuntime);
    DMNModel dmnModel = setDMNActiveModelCommand.execute(registryContext);
    assertEquals(resource.getSourcePath(), dmnModel.getResource().getSourcePath());
}