### Question:
GeneralMailScriptService implements ScriptService { public String obfuscate(InternetAddress emailAddress) { return this.obfuscator.obfuscate(emailAddress); }  boolean shouldObfuscate(); String obfuscate(InternetAddress emailAddress);  }### Answer:
@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)); }