### Question:
TenantResourceItem implements Serializable { public String getLastUpdateDate() { return lastUpdateDate; } TenantResourceItem(final TenantResource tenantResource); String getId(); void setId(String id); String getName(); void setName(String name); TenantResourceType getType(); void setType(TenantResourceType type); TenantResourceState getState(); void setState(TenantResourceState state); String getLastUpdatedBy(); void setLastUpdatedBy(final String lastUpdatedBy); String getLastUpdateDate();  }### Answer:
@Test public void should_format_lastUpdateDate_as_ISO8601_string_when_tenantResourceItem_is_created(){ String dateAsString = "2018-01-05T09:04:19Z"; Instant instant = Instant.ofEpochSecond(1515143059); when(tenantResource.getLastUpdateDate()).thenReturn(OffsetDateTime.ofInstant(instant, ZoneOffset.UTC)); TenantResourceItem tenantResourceItem = new TenantResourceItem(tenantResource); assertThat(tenantResourceItem.getLastUpdateDate()).isEqualTo(dateAsString); }