StateListAnimator sla1 = AnimatorInflater.loadStateListAnimator(getActivity(),
R.anim.test_state_anim);
sla1.setTarget(getActivity().mAnimatingButton);
StateListAnimator sla2 = AnimatorInflater.loadStateListAnimator(getActivity(),
R.anim.test_state_anim);
assertNull(sla2.getTarget());
for (StateListAnimator sla : new StateListAnimator[]{sla1, sla2}) {
assertUnique(sla);
assertEquals(3, sla.getTuples().size());
for (StateListAnimator.Tuple tuple : sla.getTuples()) {
assertUnique(tuple);
assertUnique(tuple.getAnimator());
}
}