@Test
void shouldRejectUnsupportedSeverities() {

    IssuesStatistics statistics = createSerializable();
    assertThatExceptionOfType(NoSuchElementException.class).isThrownBy(
            () -> statistics.getNewSizeOf(null)).withMessageContaining("null");
    assertThatExceptionOfType(NoSuchElementException.class).isThrownBy(
            () -> statistics.getNewSizeOf(new Severity("other"))).withMessageContaining("other");
}