Status { public Status update(final String lastUser) { this.lastUpdate = Instant.now(); this.lastUser = lastUser; return this; } Status(); Instant getCreationTime(); Instant getLastUpdate(); Status update(final String lastUser); String getLastUser();  }
@Test public void testEncodeEnabled() { final var json = JsonObject.mapFrom(new Status().update("DEFAULT_TENANT")); assertThat(json).isNotNull(); assertThat(json.getInstant(RegistryManagementConstants.FIELD_STATUS_CREATION_DATE)).isNotNull(); assertThat(json.getInstant(RegistryManagementConstants.FIELD_STATUS_LAST_UPDATE)).isNotNull(); assertThat(json.getString(RegistryManagementConstants.FIELD_STATUS_LAST_USER)).isEqualTo("DEFAULT_TENANT"); }