@SuppressWarnings("unchecked")
st
public void visit() throws PersistenceException {

    when(resourceResolver.create(any(), anyString(), any())).thenThrow(PersistenceException.class);
    assertNull(model.visit("0", new HashMap<>(), cache));
}