### Question:
PriorityMapping { @NonNull public static Priority valueOf(int value) { Priority priority = PRIORITY_MAP.get(value); if (priority == null) { throw new IllegalArgumentException("Unknown Priority for value " + value); } return priority; }  @NonNull static Priority valueOf(int value); static int toInt(@NonNull Priority priority);  }### Answer:
@Test public void forValue_withInvalidValue_shouldThrow() { assertThrows(IllegalArgumentException.class, () -> PriorityMapping.valueOf(-1)); assertThrows(IllegalArgumentException.class, () -> PriorityMapping.valueOf(3)); }