}
@Test
public void should_return_empty_set_of_property_annotations_if_accessor_is_not_property_accessor() throws Exception
{
final PropertyAccessor propertyAccessor = Mockito.mock(PropertyAccessor.class);
final Annotation annotation = Mockito.mock(Annotation.class);
Mockito.when(propertyAccessor.getReadMethodAnnotations()).thenReturn(new LinkedHashSet<Annotation>(Arrays.asList(annotation)));
final DiffNode node = new DiffNode(propertyAccessor, Object.class);
final Set<Annotation> annotations = node.getPropertyAnnotations();
assertThat(annotations).containsAll(Arrays.asList(annotation));