    @Test
    @DisplayName("Exception reading enum value")
    void getEnumFailedTest() throws IOException {

        doThrow(IOException.class).when(jsonParser).getValueAsString();
        when(jsonParser.hasToken(JsonToken.VALUE_NULL)).thenReturn(false);

        assertThatExceptionOfType(MatchbookSDKParsingException.class)
                .isThrownBy(() -> unit.getEnum(TestEnum.class));
    }