@Test
public void testGetPropertyValueBeanAndPropertyNameNotNull() throws Exception {

    // set up
    FooBean foo = new FooBean();
    foo.setBar("test");
    // test
    Object o = ConstraintValidatorsUtils.getPropertyValue(foo, "bar");
    // assert
    assertThat(o, notNullValue());
}