### Question:
CustomSession implements ExpiringSession, Serializable { public Map<String, Object> getAttributes() { return new HashMap<>(this.attributes); } CustomSession();  CustomSession(int maxInactiveInterval); void setMaxInactiveInterval(int interval); @Override void setMaxInactiveIntervalInSeconds(int interval); @Override int getMaxInactiveIntervalInSeconds(); @Override boolean isExpired(); @Override @SuppressWarnings("unchecked") T getAttribute(String attributeName); @Override Set<String> getAttributeNames(); Map<String, Object> getAttributes(); @Override void setAttribute(String attributeName, Object attributeValue); @Override void removeAttribute(String attributeName); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void attributesShouldBeEmpty_whenNewInstance() { CustomSession session = new CustomSession(); Map<String, Object> attributes = session.getAttributes(); Map<String, Object> empty = new HashMap<>(); assertThat(attributes).isEqualTo(empty); }