@Test
public void testSearializeIndexInputRangeWithType() throws Exception
{
Namespace ns = new Namespace("type","bucket");
IndexInput.RangeCriteria<Integer> criteria = new IndexInput.RangeCriteria<Integer>(1, 2);
IndexInput input = new IndexInput(ns, "index_int", criteria);
jg.writeObject(input);
assertEquals("{\"bucket\":[\"type\",\"bucket\"],\"index\":\"index_int\",\"start\":1,\"end\":2}", out.toString());
}