### Question:
BattlenetMap implements Sc2ApiSerializable<String> { public static BattlenetMap of(String battlenetMapName) { if (battlenetMapName == null) throw new IllegalArgumentException("battlenet map name is required"); return new BattlenetMap(battlenetMapName); } private  BattlenetMap(String name); @Override String toSc2Api(); static BattlenetMap of(String battlenetMapName); @JsonValue String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void throwsExceptionWhenMapNameIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> BattlenetMap.of(nothing())) .withMessage("battlenet map name is required"); }