### Question:
MyClass3 { static String hello(String arg) { Logger.debug("Calling method hello with: " + arg); return "Hello " + arg; }    }### Answer:
@Test public void testReplacingStaticMethod() throws Exception { replace(method(Logger.class, "debug")). with(method(ConsoleLogger.class, "print")); new MyClass3().hello("Frank"); }