DeleteThingLiveCommandImpl extends AbstractModifyLiveCommand<DeleteThingLiveCommand,
        DeleteThingLiveCommandAnswerBuilder> implements DeleteThingLiveCommand { @Nonnull public static DeleteThingLiveCommandImpl of(final Command<?> command) { return new DeleteThingLiveCommandImpl((DeleteThing) command); } private  DeleteThingLiveCommandImpl(final DeleteThing command); @Nonnull static DeleteThingLiveCommandImpl of(final Command<?> command); @Override Category getCategory(); @Override DeleteThingLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean changesAuthorization(); @Nonnull @Override DeleteThingLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetDeleteThingLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> DeleteThingLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetDeleteThingLiveCommandForCreateThingCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> DeleteThingLiveCommandImpl.of(commandMock)) .withMessageContaining(DeleteThing.class.getName()) .withNoCause(); }