@Test void obfuscate() throws Exception { InternetAddress address = InternetAddress.parse("john@doe.com")[0]; when(this.obfuscator.obfuscate(address)).thenReturn("obfuscatedemail"); assertEquals("obfuscatedemail", this.scriptService.obfuscate(address)); }
public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); }
GeneralMailScriptService implements ScriptService { public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); } }
GeneralMailScriptService implements ScriptService { public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); }  }
GeneralMailScriptService implements ScriptService { public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); }  boolean shouldObfuscate(); String obfuscate(InternetAddress emailAddress); }
GeneralMailScriptService implements ScriptService { public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); }  boolean shouldObfuscate(); String obfuscate(InternetAddress emailAddress);  }