### Question:
MailService { private boolean isHttpUrl(String url) { return new UrlValidator().isValid(url); } @Autowired  MailService(JavaMailSender mailSender, MailContentBuilderService mailContentBuilderService); void prepareAndSendMail(String cc,String from, List<String> to, String subject, String mailMessageUrlOrBody, Map<String, Object> placeholderValues, final String attachmentUrl, final Boolean isPlainMessage); void prepareTemplateAndSendMail(String from, List<String> to, String subject, String mailMessageUrlOrBody, Map<String, Object> placeholderValues, final String attachmentUrl, final Boolean isPlainMessage); void prepareTemplateAndSendMail(String from, List<String> to, String subject, String mailContent , final String attachmentUrl); @SuppressWarnings("deprecation") String processTemplate(String templateUrl, Map<String, Object> model);  }### Answer:
@Test public void isHttpUrlTest() throws Exception { Whitebox.invokeMethod(mailService, "isHttpUrl", "www.google.com"); }