Shutdown extends CommonCommand<Shutdown> { public ShutdownReason getReason() { return reason; } private  Shutdown(final ShutdownReason theReason, final DittoHeaders dittoHeaders); static Shutdown getInstance(final ShutdownReason shutdownReason, final DittoHeaders dittoHeaders); static Shutdown fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); ShutdownReason getReason(); @Override Shutdown setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }
@Test public void getReasonReturnsExpected() { assertThat(underTest.getReason()).isEqualTo(knownShutdownReason); }