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