### Question:
StoreService { public List<Store> findWithinBounds(LocationBounds bounds) { return storeRepository.getSpannerTemplate().query(Store.class, buildStatement(bounds)); } StoreService(StoreRepository storeRepository); List<Store> findWithinBounds(LocationBounds bounds);  }### Answer:
@Test public void testFindWithinBounds() { assertThat(storeRepository).isNotNull(); when(storeRepository.getSpannerTemplate()).thenReturn(spannerOperations); given(spannerOperations.query(Store.class, statement1)).willReturn(result1); assertThat(storeService.findWithinBounds(query1)).isEqualTo(result1); given(spannerOperations.query(Store.class, statement2)).willReturn(result2); assertThat(storeService.findWithinBounds(query2)).isEqualTo(result2); }