class PurgeNamespaceReason implements ShutdownReason {

    @Override
    public JsonObject toJson() {
        return toJson(FieldType.REGULAR.and(FieldType.notHidden()));
    }

}

class PurgeNamespaceReasonTest {

    private static ShutdownReasonType purgeNamespaceType;
    private static String knownNamespace;
    private static JsonObject knownJsonRepresentation;
    private PurgeNamespaceReason underTest;

    @Test
    public void toJsonWithHiddenFieldsOnlyReturnsEmptyJsonObject() {

        assertThat(underTest.toJson(FieldType.HIDDEN)).isEmpty();
    }

}