Tenant { public final Tenant setMinimumMessageSize(final Integer minimumMessageSize) { if (minimumMessageSize == null || minimumMessageSize < 0) { throw new IllegalArgumentException("minimum message size must be >= 0"); } this.minimumMessageSize = minimumMessageSize; return this; }  @JsonIgnore final boolean isValid(); @JsonIgnore final Tenant setEnabled(final boolean enabled); @JsonIgnore final boolean isEnabled(); final Tenant setExtensions(final Map<String, Object> extensions); final Tenant putExtension(final String key, final Object value); final Map<String, Object> getExtensions(); final Tenant setDefaults(final Map<String, Object> defaults); final Map<String, Object> getDefaults(); final Tenant setAdapters(final List<Adapter> adapters); final List<Adapter> getAdapters(); final Tenant addAdapterConfig(final Adapter configuration); final Integer getMinimumMessageSize(); final Tenant setMinimumMessageSize(final Integer minimumMessageSize); final ResourceLimits getResourceLimits(); final Tenant setResourceLimits(final ResourceLimits resourceLimits); final TenantTracingConfig getTracing(); final Tenant setTracing(final TenantTracingConfig tracing); List<TrustedCertificateAuthority> getTrustedCertificateAuthorities(); Tenant setTrustedCertificateAuthorities(final List<TrustedCertificateAuthority> trustedCertificateAuthorities); @JsonIgnore Set<X500Principal> getTrustedCertificateAuthoritySubjectDNs(); boolean hasTrustedCertificateAuthoritySubjectDN(final X500Principal subjectDn);  }
@Test public void testEncodeMinimumMessageSize() { final var tenant = new Tenant(); tenant.setMinimumMessageSize(RegistryManagementConstants.DEFAULT_MINIMUM_MESSAGE_SIZE + 10); final var json = JsonObject.mapFrom(tenant); assertNotNull(json); assertNotNull(json.getInteger(RegistryManagementConstants.FIELD_MINIMUM_MESSAGE_SIZE)); }