throws IOException {
assertEquals(expected, env.isObfuscatingEMailAddresses());
String address = "opengrok-discuss@opensolaris.org";
PlainXref xref = new PlainXref(new StringReader(address));
StringWriter out = new StringWriter();
xref.write(out);
String expectedAddress = expected ?
address.replace("@", " (at) ") : address;
String expectedOutput =