BlockNamespace extends AbstractNamespaceCommand<BlockNamespace> { @Override public String toString() { return getClass().getSimpleName() + "[" + super.toString() + "]"; } private  BlockNamespace(final CharSequence namespace, final DittoHeaders dittoHeaders); static BlockNamespace of(final CharSequence namespace, final DittoHeaders dittoHeaders); static BlockNamespace fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override BlockNamespace setDittoHeaders(final DittoHeaders dittoHeaders); @Override String toString(); static final String TYPE; }
@Test public void getEntityIdReturnsNamespace() { assertThat(underTest.getEntityId().toString()).isEqualTo(underTest.getNamespace()); }
@Test public void toStringContainsExpected() { assertThat(underTest.toString()) .contains(underTest.getClass().getSimpleName()) .contains(NAMESPACE); }