### Question:
WSHelper { public static void setMetroDebugSystemProperties (final boolean bDebug) { enableSoapLogging (bDebug); SystemProperties.setPropertyValue ("com.sun.xml.ws.transport.http.HttpAdapter.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace", bDebug ? null : "false"); SystemProperties.setPropertyValue ("com.sun.metro.soap.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.wss.provider.wsit.SecurityTubeFactory.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.wss.jaxws.impl.SecurityServerTube.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.wss.jaxws.impl.SecurityClientTube.dump", Boolean.toString (bDebug)); SystemProperties.setPropertyValue ("com.sun.xml.ws.rx.rm.runtime.ClientTube.dump", Boolean.toString (bDebug)); } private  WSHelper(); static void enableSoapLogging(final boolean bDebug); static void enableSoapLogging(final boolean bServerDebug, final boolean bClientDebug); static void setMetroDebugSystemProperties(final boolean bDebug); static boolean isOutboundMessage(@Nonnull final MessageContext aContext);  }### Answer:
@Test public void testDebuggingOnOff () { WSHelper.setMetroDebugSystemProperties (true); WSHelper.setMetroDebugSystemProperties (false); }