List<EKBPostCommitHook> postHooks = new ArrayList<EKBPostCommitHook>();
List<EKBErrorHook> errorHooks = new ArrayList<EKBErrorHook>();
EDBCommit result = mock(EDBCommit.class);
when(edbService.createEDBCommit(anyListOf(EDBObject.class), anyListOf(EDBObject.class),
anyListOf(EDBObject.class))).thenReturn(result);
this.service = new PersistInterfaceService(edbService, converter, preHooks, postHooks, errorHooks
, "DEACTIVED");
ContextHolder.get().setCurrentContextId("test");
}