### Question:
EditMessageCaption extends EditMessageRequest<Message> { public static EditMessageCaptionBuilder forMessage(CaptionableMessage<?> message) { Objects.requireNonNull(message, "message cannot be null"); return builder() .chatId(message.getChat().getChatId()) .messageId(message.getMessageId()); } @Builder  EditMessageCaption(Consumer<Message> callback, Consumer<TelegramException> errorHandler, ChatId chatId, int messageId, String inlineMessageId, ReplyMarkup replyMarkup, String caption, ParseMode parseMode); static EditMessageCaptionBuilder forMessage(CaptionableMessage<?> message); static EditMessageCaptionBuilder forInlineMessage(String inlineMessageId);  }### Answer:
@Test public void toEditCaptionRequest_output_same_as_forMessage_audio() { EditMessageCaption expected = EditMessageCaption.forMessage(audioMessageMock).build(); EditMessageCaption actual = audioMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }
@Test public void toEditCaptionRequest_output_same_as_forMessage_document() { EditMessageCaption expected = EditMessageCaption.forMessage(documentMessageMock).build(); EditMessageCaption actual = documentMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }
@Test public void toEditCaptionRequest_output_same_as_forMessage_photo() { EditMessageCaption expected = EditMessageCaption.forMessage(photoMessageMock).build(); EditMessageCaption actual = photoMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }
@Test public void toEditCaptionRequest_output_same_as_forMessage_video() { EditMessageCaption expected = EditMessageCaption.forMessage(videoMessageMock).build(); EditMessageCaption actual = videoMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }
@Test public void toEditCaptionRequest_output_same_as_forMessage_video_note() { EditMessageCaption expected = EditMessageCaption.forMessage(videoNoteMessageMock).build(); EditMessageCaption actual = videoNoteMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }
@Test public void toEditCaptionRequest_output_same_as_forMessage_voice() { EditMessageCaption expected = EditMessageCaption.forMessage(voiceMessageMock).build(); EditMessageCaption actual = voiceMessageMock.toEditCaptionRequest().build(); assertEquals(expected, actual); }