result.setLatitude(47.0);
result.setLongitude(-122.0);
result.setPostalCode("98000");
results.addResult(result);
GeocoderService mock = Mockito.mock(GeocoderService.class);
Mockito.when(mock.geocode("test")).thenReturn(results);
DatabaseCachingGeocoderImpl geocoder = new DatabaseCachingGeocoderImpl();
geocoder.setSessionFactory(_sessionFactory);
geocoder.setGeocoderService(mock);