@Test
public void executeWithResource() {

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