RetrieveThingLiveCommandImpl extends AbstractQueryLiveCommand<RetrieveThingLiveCommand,
        RetrieveThingLiveCommandAnswerBuilder> implements RetrieveThingLiveCommand { @Nonnull public static RetrieveThingLiveCommandImpl of(final Command<?> command) { return new RetrieveThingLiveCommandImpl((RetrieveThing) command); } private  RetrieveThingLiveCommandImpl(final RetrieveThing command); @Nonnull static RetrieveThingLiveCommandImpl of(final Command<?> command); @Override RetrieveThingLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Nonnull @Override RetrieveThingLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetRetrieveThingLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> RetrieveThingLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetRetrieveThingLiveCommandForCreateAttributeCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> RetrieveThingLiveCommandImpl.of(commandMock)) .withMessageContaining(RetrieveThing.class.getName()) .withNoCause(); }