 				sut.sortField = -> sortField
 
 				initDetailsStub.returns(true)
+				mocker.stub(amplify, 'store', (x, y) -> captured.push(y))
 
 				# When
 				sut.storeAdvancedDetails()


	describe 'When common search features are in use', ->
		describe 'When UI needs to store advanced details before make a request', ->
			it 'Should store filter and sort details', ->
				# Given
				format = BaseSearchViewModel.displayDateTimeFormat

				captured = []
				sut = new BaseSearchViewModel()
				initDetailsStub = mocker.stub(sut, 'initAdvancedDetails')
				sut.filter =
					from: -> fromDate.format(format)
					till: -> tillDate.format(format)
