BlockNamespaceResponse extends AbstractNamespaceCommandResponse<BlockNamespaceResponse> { public static BlockNamespaceResponse getInstance(final CharSequence namespace, final CharSequence resourceType, final DittoHeaders dittoHeaders) { return new BlockNamespaceResponse(namespace, resourceType, dittoHeaders); } private  BlockNamespaceResponse(final CharSequence namespace, final CharSequence resourceType,
            final DittoHeaders dittoHeaders); static BlockNamespaceResponse getInstance(final CharSequence namespace, final CharSequence resourceType,
            final DittoHeaders dittoHeaders); static BlockNamespaceResponse fromJson(final JsonObject jsonObject, final DittoHeaders headers); @Override BlockNamespaceResponse setDittoHeaders(final DittoHeaders dittoHeaders); @Override String toString(); static final String TYPE; }
@Test public void toJsonReturnsExpected() { final BlockNamespaceResponse underTest = BlockNamespaceResponse.getInstance(NAMESPACE, RESOURCE_TYPE, dittoHeaders); assertThat(underTest.toJson()).isEqualTo(knownJsonRepresentation); }
@Test public void getIdReturnsNamespace() { final BlockNamespaceResponse underTest = BlockNamespaceResponse.getInstance(NAMESPACE, RESOURCE_TYPE, dittoHeaders); assertThat(underTest.getId()).isEqualTo(underTest.getNamespace()); }