NotifierProvider implements Provider<Notifier> { @Override public Notifier provide() { return notifier; } NotifierProvider(Context context);  NotifierProvider(String version);  NotifierProvider(String version, String name); @Override Notifier provide();  }
@Test public void shouldUseVersionFromMetadata() { NotifierProvider sut = new NotifierProvider(context); Notifier notifier = sut.provide(); assertEquals(VERSION, notifier.getVersion()); assertEquals(NAME, notifier.getName()); }