Module { public void registerActions(@NonNull Context context, @NonNull ActionRegistry registry) { if (actionsXmlId != 0) { registry.registerActions(context, actionsXmlId); } } 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 testRegisterActions() { TestComponent component = new TestComponent(context, dataStore); Module module = Module.singleComponent(component, 100); module.registerActions(context, actionRegistry); verify(actionRegistry).registerActions(context, 100); }