removed calls to deprecated context broker API, junit test