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