RetrieveFeatureDefinitionLiveCommandImpl extends AbstractQueryLiveCommand<RetrieveFeatureDefinitionLiveCommand,
        RetrieveFeatureDefinitionLiveCommandAnswerBuilder> implements RetrieveFeatureDefinitionLiveCommand { @Nonnull public static RetrieveFeatureDefinitionLiveCommandImpl of(final Command<?> command) { return new RetrieveFeatureDefinitionLiveCommandImpl((RetrieveFeatureDefinition) command); } private  RetrieveFeatureDefinitionLiveCommandImpl(final RetrieveFeatureDefinition command); @Nonnull static RetrieveFeatureDefinitionLiveCommandImpl of(final Command<?> command); @Override String getFeatureId(); @Override RetrieveFeatureDefinitionLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Nonnull @Override RetrieveFeatureDefinitionLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetRetrieveFeatureDefinitionLiveCommandForNull() { assertThatNullPointerException() .isThrownBy(() -> RetrieveFeatureDefinitionLiveCommandImpl.of(null)) .withMessage("The %s must not be null!", "command") .withNoCause(); }
@Test public void tryToGetRetrieveFeatureDefinitionLiveCommandForCreateAttributeCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> RetrieveFeatureDefinitionLiveCommandImpl.of(commandMock)) .withMessageContaining(RetrieveFeatureDefinition.class.getName()) .withNoCause(); }