@Override
    public SentWebAppMessage deserializeResponse(String answer) throws TelegramApiRequestException {
        return deserializeResponse(answer, SentWebAppMessage.class);
    }
@Test
    public void testAnswerWebAppQueryDeserializeWithWrongObject() {
        String responseText = "{\"ok\":false\"error_code\": 404,\"description\": \"Error message\"}";

        AnswerWebAppQuery answerWebAppQuery = AnswerWebAppQuery
                .builder()
                .webAppQueryId("123456789")
                .queryResult(InlineQueryResultArticle
                        .builder()
                        .id("")
                        .title("Text")
                        .inputMessageContent(InputTextMessageContent
                                .builder()
                                .messageText("My own text")
                                .build())
                        .build())
                .build();

        try {
            answerWebAppQuery.deserializeResponse(responseText);
            fail();
        } catch (TelegramApiRequestException e) {
            assertEquals("Unable to deserialize response", e.getMessage());
        }
    }