@Test
public void rootNodeIsSourceParent() {

  when(sourceMock.getParent()).thenReturn(parentMock);
  AccessibilityNodeInfo rootNode = testSubject.getRootNodeFromSource(sourceMock);
  Assert.assertEquals(rootNode, parentMock);
}