TestHandler handler = new TestHandler();
expResult.setOccasion(MailSpecifier.ON_END);
setPrivateField(instance, "mailSpecifier", expResult.clone());
log.setLevel(Level.ALL);
log.addHandler(handler);
handler.setLevel(Level.ALL);
value = "xyz";
result = callPrivateMethod(instance, "parseMail", new Class[]{ String.class }, new Object[]{ value });
assertEquals("The parseMail() method did not parse the value correctly", expResult, result);
assertEquals("The parseMail() method did log an appropriate error message", 1, handler.messages.size());