@Test
public void execute() {

    RegistryContext registryContext = new ContextImpl();
    NewDMNRuntimeCommand newDMNRuntimeCommand = new NewDMNRuntimeCommand();
    assertThatThrownBy(() -> newDMNRuntimeCommand.execute(registryContext))
            .isInstanceOf(IllegalStateException.class)
            .hasMessage("There is no existing KieContainer assigned to the Registry");
    registryContext.register(KieContainer.class, new KieHelper().getKieContainer());
    newDMNRuntimeCommand.execute(registryContext);
    assertNotNull(registryContext.lookup(DMNRuntime.class));
}