@Test
public void testTeardownOrder() {

  mResourcesLifecycleManager.teardown();
  InOrder inOrder = Mockito.inOrder(mLifecycleComponents.toArray());
  for (int i = mLifecycleComponents.size() - 1; i>=0; i--) {
    inOrder.verify(mLifecycleComponents.get(i)).teardown();
  }
  verifyNoMoreInteractions(mLifecycleComponents.toArray());
}