@Test
@SuppressWarnings("unchecked")
void explainServiceTestMultipleInputs() {

    List<PredictInput> inputs = asList(createInput(40), createInput(120));
    List<PredictOutput> outputs = (List<PredictOutput>) resource.predict(inputs).getBody();
    assertNotNull(outputs);
    assertEquals(2, outputs.size());
    PredictOutput output = outputs.get(1);
    assertNotNull(output);
    assertNotNull(output.getResult());
    assertNotNull(output.getModelIdentifier());
    Map<String, Object> result = output.getResult();
    assertTrue(result.containsKey("Should the driver be suspended?"));
    assertEquals("No", result.get("Should the driver be suspended?"));
    assertNull(result.get("Fine"));
}