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


	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

				sut.sortField = -> sortField

				initDetailsStub.returns(true)
				mocker.stub(amplify, 'store', (x, y) -> captured.push(y))

				# When
				sut.storeAdvancedDetails()
