### Question:
LocationContextUpdater implements LiveContextUpdater, IContextListener { @Override public void contextChanged(RawContextNotification notification) throws Exception { String name = notification.getName(); logger.debug("Current Place Raw Context notification received: " + name); StringTokenizer tok = new StringTokenizer(name,","); IEntity entity = Factory.createEntity(tok.nextToken()); IScope scope = Factory.createScope(tok.nextToken()); Tenant t = new Tenant(); t.setId(notification.getTenant()); IContextDataset dataset; try { dataset = this.contextProcessor.getContext(t,entity, scope); if (!dataset.equals(IContextDataset.EMPTY_CONTEXT_DATASET)) { IContextElement[] ces = dataset.getContextElements(scope); if (ces != null && ces.length == 1) { this.rawContextQueue.add(ces[0]); update(); } } } catch (ContextException e) { logger.error(e.toString()); } }  void setContextProcessor(IContextProcessor contextProcessor); void setConnectionProvider(ConnectionProvider connectionProvider); void setTenantManager(TenantManager tenantManager); void setLocationManager(LocationManager locationManager); void setPlaceProcessor(PlaceProcessor placeProcessor); void init(); @Override void contextChanged(RawContextNotification notification); @Override void update();  }### Answer:
@Test public void testUpdateCurrentPlace() { try { RawContextNotification notification = createNotification(user1, currentPlace); SpaTem spatem = liveContextService.get(SpaTem.class); ClosableIterator<Place> places = spatem.getAllCurrentPlace(); rawContextUpdater.contextChanged(notification); spatem = liveContextService.get(SpaTem.class); places = spatem.getAllCurrentPlace(); assertTrue(places.hasNext()); } catch (Exception e) { fail(e.getMessage()); } }