RetrieveThingsLiveCommandImpl extends AbstractQueryLiveCommand<RetrieveThingsLiveCommand,
        RetrieveThingsLiveCommandAnswerBuilder> implements RetrieveThingsLiveCommand { @Nonnull public static RetrieveThingsLiveCommandImpl of(final Command<?> command) { return new RetrieveThingsLiveCommandImpl((RetrieveThings) command); } private  RetrieveThingsLiveCommandImpl(final RetrieveThings command); @Nonnull static RetrieveThingsLiveCommandImpl of(final Command<?> command); @Nonnull @Override List<ThingId> getThingEntityIds(); @Nonnull @Override Optional<String> getNamespace(); @Override RetrieveThingsLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Nonnull @Override RetrieveThingsLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetRetrieveThingsLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> RetrieveThingsLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetRetrieveThingsLiveCommandForCreateAttributeCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> RetrieveThingsLiveCommandImpl.of(commandMock)) .withMessageContaining(RetrieveThings.class.getName()) .withNoCause(); }