### Question:
ExplainMap implements ImmutableBean, Serializable { public static ExplainMapBuilder builder() { return new ExplainMapBuilder(); } private  ExplainMap(
      Map<ExplainKey<?>, Object> map); static ExplainMap of(Map<ExplainKey<?>, Object> map); static ExplainMapBuilder builder(); @SuppressWarnings("unchecked") Optional<R> get(ExplainKey<R> key); String explanationString(); static ExplainMap.Meta meta(); @Override ExplainMap.Meta metaBean(); ImmutableMap<ExplainKey<?>, Object> getMap(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_builder_openClose_wrongCloseKey() { ExplainMapBuilder builder = ExplainMap.builder(); ExplainMapBuilder child = builder.openListEntry(ExplainKey.LEGS); child.put(ExplainKey.ACCRUAL_DAYS, 2); assertThatIllegalStateException() .isThrownBy(() -> child.closeListEntry(ExplainKey.PAYMENT_PERIODS)); }