@Test public void testFromServiceLoader() { CustomSender customSender = new CustomSender(); SenderFactoryToBeLoaded.sender = customSender; Sender sender = SenderResolver.resolve(); assertEquals(customSender, sender); }
public static Sender resolve() { return resolve(Configuration.SenderConfiguration.fromEnv()); }
SenderResolver { public static Sender resolve() { return resolve(Configuration.SenderConfiguration.fromEnv()); } }
SenderResolver { public static Sender resolve() { return resolve(Configuration.SenderConfiguration.fromEnv()); }  }
SenderResolver { public static Sender resolve() { return resolve(Configuration.SenderConfiguration.fromEnv()); }  static Sender resolve(); static Sender resolve(Configuration.SenderConfiguration senderConfiguration); }
SenderResolver { public static Sender resolve() { return resolve(Configuration.SenderConfiguration.fromEnv()); }  static Sender resolve(); static Sender resolve(Configuration.SenderConfiguration senderConfiguration);  }