### Question:
CustomSession implements ExpiringSession, Serializable { @Override public int getMaxInactiveIntervalInSeconds() { return this.maxInactiveInterval; } 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 maxInactiveIntervalShouldBe1800_whenNewInstance() { CustomSession session = new CustomSession(); int maxInactiveInterval = session.getMaxInactiveIntervalInSeconds(); int expected = 1800; assertThat(maxInactiveInterval).isEqualTo(expected); }