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