{
Namespace ns = new Namespace("type", "bucket");
ArrayList<BucketKeyInput.IndividualInput> inputs = new ArrayList<BucketKeyInput.IndividualInput>();
inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key")));
inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key"), "data"));
BucketKeyInput input = new BucketKeyInput(inputs);
jg.writeObject(input);
assertEquals("[[\"bucket\",\"key\",\"\",\"type\"],[\"bucket\",\"key\",\"data\",\"type\"]]", out.toString());