@Test
public void navigateToObjectTest() {

    Dispute dispute = new Dispute();
    Person creator = new Person();
    creator.setFirstName(FIRST_NAME);
    dispute.setCreator(creator);
    List<String> pathToProperty = Arrays.asList("creator", "firstName");
    ScenarioBeanWrapper<?> scenarioBeanWrapper = ScenarioBeanUtil.navigateToObject(dispute, pathToProperty, true);
    Object targetObject = scenarioBeanWrapper.getBean();
    assertEquals(targetObject, FIRST_NAME);
    assertNull(ScenarioBeanUtil.navigateToObject(null, Collections.emptyList()).getBean());
}