
Pattern pattern = Pattern.compile(expectedPattern, Pattern.MULTILINE);
assertTrue(diagnostic, pattern.matcher(msg).find());</BUG>
return;
}
<BUG>String diagnostic = "Expected " + what + " to throw an exception matching the pattern \"" +

expectedPattern + "\", but instead it threw nothing.";
</BUG>
fail(diagnostic);

try {
ConnectionUtil.closeConnection(sc);
} catch (final IOException e) {
e.printStackTrace();
