doReturn(true).when(introspectableResolver).isIntrospectable(node(withRoot()));
}
private PropertyAwareAccessor given_introspector_returns_PropertyAccessor(final String propertyName)
{
final BeanPropertyElementSelector propertyElement = new BeanPropertyElementSelector(propertyName);
final PropertyAwareAccessor propertyAccessor = mock(PropertyAwareAccessor.class);
when(propertyAccessor.getElementSelector()).thenReturn(propertyElement);
final TypeInfo typeInfo = new TypeInfo(Class.class);
typeInfo.addPropertyAccessor(propertyAccessor);
when(typeInfoResolver.typeInfoForNode(any(DiffNode.class))).thenReturn(typeInfo);