### Question:
CustomSession implements ExpiringSession, Serializable { @Override public boolean isExpired() { return isExpired(convert2Timestamp(now())); } 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 shouldBeNotExpire_whenNewInstance() { CustomSession session = new CustomSession(); boolean output = session.isExpired(); boolean expected = false; assertThat(output).isEqualTo(expected); }
@Test public void shouldBeNotExpire_whenMaxInactiveIntervalIsNegativeValue() { CustomSession session = new CustomSession(-1); boolean output = session.isExpired(); boolean expected = false; assertThat(output).isEqualTo(expected); }