use of com.ibm.streamsx.health.vines.model.ServiceId in project streamsx.health by IBMStreams.
the class Tests method serviceIdTest.
@Test
public void serviceIdTest() {
Vines vines = VinesMessageParser.fromJson(simpleMessage);
ServiceId serviceId = vines.getData().getBody().getServiceId();
Assert.assertTrue(serviceId.containsKey("Dopamine 475"));
Service service = serviceId.get("Dopamine 475");
Assert.assertEquals("2222", service.getCode());
}