@Test public void shouldDisableTransactionsLocally() { // given doReturn(sessionService).when(modelService).lookupSessionService(); // when modelService.disableTransactions(); // then verify(sessionService, times(1)) .setAttribute(DefaultModelService.ENABLE_TRANSACTIONAL_SAVES, Boolean.FALSE); }