@Test
public void testImportFromSubAndSuperClasses() {

  SubclassTestObject testObject = new SubclassTestObject();
  DependencyKey<SubclassTestObject.SubClassInnerClass> subClassInnerClassKey =
      DependencyKey.of(SubclassTestObject.SubClassInnerClass.class);
  DependencyKey<SuperclassTestObject.SuperClassInnerClass> superClassInnerClassKey =
      DependencyKey.of(SuperclassTestObject.SuperClassInnerClass.class);
  MockitoAnnotations.initMocks(testObject);
  initImporter(Arrays.asList(RealObject.class, Mock.class));
  mImporter.importAnnotatedFields(testObject);
  verify(mDependencyMap).put(key1, "subclass", null);
  verify(mDependencyMap).put(key2, "superclass", null);
  verify(mDependencyMap).put(
      eq(subClassInnerClassKey),
      any(SubclassTestObject.SubClassInnerClass.class),
      nullable(DependencyValidator.class));
  verify(mDependencyMap).put(
      eq(superClassInnerClassKey),
      any(SuperclassTestObject.SuperClassInnerClass.class),
      nullable(DependencyValidator.class));
  verifyNoMoreInteractions(mDependencyMap);
}