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