@Test public final void test_save() { AccountDetailType expextedResult = getAccountDetailTypes().get(0); when(accountDetailTypeRepository.save(any(AccountDetailType.class))).thenReturn(expextedResult); AccountDetailType actualResult = accountDetailTypeService.save(getAccountDetailTypes().get(0)); assertEquals(expextedResult, actualResult); }
@Transactional public AccountDetailType save(AccountDetailType accountDetailType) { return accountDetailTypeRepository.save(accountDetailType); }
AccountDetailTypeService { @Transactional public AccountDetailType save(AccountDetailType accountDetailType) { return accountDetailTypeRepository.save(accountDetailType); } }
AccountDetailTypeService { @Transactional public AccountDetailType save(AccountDetailType accountDetailType) { return accountDetailTypeRepository.save(accountDetailType); }  }
AccountDetailTypeService { @Transactional public AccountDetailType save(AccountDetailType accountDetailType) { return accountDetailTypeRepository.save(accountDetailType); }  @Transactional List<AccountDetailType> create(List<AccountDetailType> accountDetailTypes, BindingResult errors,
			RequestInfo requestInfo); @Transactional List<AccountDetailType> update(List<AccountDetailType> accountDetailTypes, BindingResult errors,
			RequestInfo requestInfo); List<AccountDetailType> fetchRelated(List<AccountDetailType> accountdetailtypes); @Transactional List<AccountDetailType> add(List<AccountDetailType> accountdetailtypes, BindingResult errors); @Transactional List<AccountDetailType> update(List<AccountDetailType> accountdetailtypes, BindingResult errors); void addToQue(AccountDetailTypeRequest request); Pagination<AccountDetailType> search(AccountDetailTypeSearch accountDetailTypeSearch, BindingResult errors); @Transactional AccountDetailType save(AccountDetailType accountDetailType); @Transactional AccountDetailType update(AccountDetailType accountDetailType); }
AccountDetailTypeService { @Transactional public AccountDetailType save(AccountDetailType accountDetailType) { return accountDetailTypeRepository.save(accountDetailType); }  @Transactional List<AccountDetailType> create(List<AccountDetailType> accountDetailTypes, BindingResult errors,
			RequestInfo requestInfo); @Transactional List<AccountDetailType> update(List<AccountDetailType> accountDetailTypes, BindingResult errors,
			RequestInfo requestInfo); List<AccountDetailType> fetchRelated(List<AccountDetailType> accountdetailtypes); @Transactional List<AccountDetailType> add(List<AccountDetailType> accountdetailtypes, BindingResult errors); @Transactional List<AccountDetailType> update(List<AccountDetailType> accountdetailtypes, BindingResult errors); void addToQue(AccountDetailTypeRequest request); Pagination<AccountDetailType> search(AccountDetailTypeSearch accountDetailTypeSearch, BindingResult errors); @Transactional AccountDetailType save(AccountDetailType accountDetailType); @Transactional AccountDetailType update(AccountDetailType accountDetailType);  }