PrintStream out = new PrintStream(bao);
Logger log = Logger.getLogger("com.sun.grid.Jsv");
TestHandler handler = new TestHandler();
instance.setOut(out);
log.addHandler(handler);
log.setLevel(Level.ALL);
handler.setLevel(Level.ALL);
callPrivateMethod(instance, JsvManager.class, "sendParameter", new Class[]{String.class, String.class}, new Object[]{parameter, value});
assertEquals("sendParameter() did not send the expected value", expected + "\n", bao.toString());
assertEquals("sendParameter() did not log an appropriate log message: ", 1, handler.messages.size());