Module { @NonNull public Set<? extends AirshipComponent> getComponents() { return components; } protected  Module(@NonNull Set<? extends AirshipComponent> components); protected  Module(@NonNull Set<? extends AirshipComponent> components, @XmlRes int actionsXmlId); @NonNull static Module singleComponent(@NonNull AirshipComponent component, @XmlRes int actionsXmlId); @NonNull static Module multipleComponents(@NonNull Collection<AirshipComponent> components, @XmlRes int actionsXmlId); @NonNull Set<? extends AirshipComponent> getComponents(); void registerActions(@NonNull Context context, @NonNull ActionRegistry registry);  }
@Test public void testGetComponents() { TestComponent component = new TestComponent(context, dataStore); Module module = Module.singleComponent(component, 0); assertEquals(Collections.singleton(component), module.getComponents()); }