@Test
public void testSetupAndTearDown() {

  mDelayedBuilder.setParent(mConfig);
  mDelayedBuilder.setParent(null);
  InOrder inOrder = Mockito.inOrder(mBackingBuilder, mConfig, mChildConfig);
  inOrder.verify(mBackingBuilder).deepCopy();
  inOrder.verify(mBackingBuilder).setParent(mConfig);
  inOrder.verify(mBackingBuilder).buildInternal();
  inOrder.verify(mChildConfig).setup(mChildMockspresso);
  inOrder.verify(mChildConfig).teardown();
  verifyNoMoreInteractions(mBackingBuilder, mConfig, mChildConfig);
}