@Test
public void testHasPendingChanges() throws Exception {

    Session delegate = mock(Session.class);
    SessionFacade<Session> facade = getFacade(delegate);
    when(delegate.hasPendingChanges()).thenReturn(true);
    assertTrue("should have pending changes", facade.hasPendingChanges());
}