@Test
public void testBuildSpecInvalidSpecWrongType(TestContext context) throws JoltSpecException {

    thrown.expect( JoltSpecException.class );
    thrown.expectCause(IsInstanceOf.instanceOf(SpecException.class));
    String specWrongType = "[\n" +
            "  {\n" +
            "    \"operation\": \"shift\",\n" +
            "    \"spec\": 123\n" +
            "  }\n" +
            "]";
    JoltSpecBuilder.buildSpec(specWrongType);
}