### Question:
NamedListWrapper { public NamedListWrapper getNamedListOrElseThrow(String key) { Object obj = namedList.get(key); if (!(obj instanceof NamedList)) { throw new IllegalArgumentException(exceptionMessage); } return new NamedListWrapper((NamedList) obj, this.exceptionMessage); } private  NamedListWrapper(final NamedList namedList, final String exceptionMessage); static NamedListWrapper create(final NamedList namedList, final String exceptionMessage); NamedListWrapper getNamedListOrElseThrow(String key); List<NamedListWrapper> getListOfNamedListsAssertNotEmpty(String key); String getStringOrElseThrow(String key); int getOrDefaultInteger(String key, int defaultValue); BigDecimal getOrDefaultBigDecimalAssertNotNegative(String key, float defaultValue); BigDecimal getOrDefaultBigDecimal(String key, float defaultValue);  }### Answer:
@Test public void testGetNamedListOrElseThrowNamedListDoesNotExist() { exceptionRule.expect(IllegalArgumentException.class); exceptionRule.expectMessage(message); namedListWrapper.getNamedListOrElseThrow(unknown); }