### Question:
MSEmailHeaderConverter { @Inject @VisibleForTesting MSEmailHeaderConverter(UserEmailParserUtils emailParserUtils) { this.emailParserUtils = emailParserUtils; } @Inject @VisibleForTesting  MSEmailHeaderConverter(UserEmailParserUtils emailParserUtils); MSEmailHeader convertToMSEmailHeader(Envelope envelope);  }### Answer:
@Test public void testMSEmailHeaderConverter() { Envelope envelope = Envelope.builder() .from(Lists.newArrayList(new Address(FROM))) .replyTo(Lists.newArrayList(new Address(REPLY_TO))) .to(Lists.newArrayList(new Address(TO))) .cc(Lists.newArrayList(new Address(CC))) .subject(SUBJECT) .date(DateUtils.date(DATE)).build(); MSEmailHeader msEmailHeader = msEmailHeaderConverter.convertToMSEmailHeader(envelope); Assertions.assertThat(msEmailHeader).isNotNull(); Assertions.assertThat(msEmailHeader.getFrom()).isEqualTo(Lists.newArrayList(toMSAddress(FROM))); Assertions.assertThat(msEmailHeader.getReplyTo()).isEqualTo(Lists.newArrayList(toMSAddress(REPLY_TO))); Assertions.assertThat(msEmailHeader.getTo()).isEqualTo(Lists.newArrayList(toMSAddress(TO))); Assertions.assertThat(msEmailHeader.getCc()).isEqualTo(Lists.newArrayList(toMSAddress(CC))); Assertions.assertThat(msEmailHeader.getSubject()).isEqualTo(SUBJECT); Assertions.assertThat(msEmailHeader.getDate()).isEqualTo(DateUtils.date(DATE)); }