@Test
public void testSetupOrder() {

  mResourcesLifecycleManager.setup(mMockspresso);
  InOrder inOrder = Mockito.inOrder(mLifecycleComponents.toArray());
  for (int i = 0; i < mLifecycleComponents.size(); i++) {
    inOrder.verify(mLifecycleComponents.get(i)).setup(mMockspresso);
  }
  verifyNoMoreInteractions(mLifecycleComponents.toArray());
}