SelectorBuilder builder = new SelectorBuilder();
builder =
builder.fields("Id", "Name", "Status", "StartDate", "EndDate", "ServingStatus", "Settings");
Selector selector = builder.build();
Assert.assertEquals(7, selector.getFields().size());
Assert.assertEquals("Id", selector.getFields().get(0));
Assert.assertEquals("Name", selector.getFields().get(1));
Assert.assertEquals("Status", selector.getFields().get(2));
Assert.assertEquals("StartDate", selector.getFields().get(3));
Assert.assertEquals("EndDate", selector.getFields().get(4));
Assert.assertEquals("ServingStatus", selector.getFields().get(5));
Assert.assertEquals("Settings", selector.getFields().get(6));
selector = builder.fields("Id",
"Name",
"Status",
"StartDate",
"EndDate",
"ServingStatus",
"Settings",
"Id",
"AverageCpc").build();
Assert.assertEquals(8, selector.getFields().size());
Assert.assertEquals("Id", selector.getFields().get(0));
Assert.assertEquals("Name", selector.getFields().get(1));
Assert.assertEquals("Status", selector.getFields().get(2));
Assert.assertEquals("StartDate", selector.getFields().get(3));
Assert.assertEquals("EndDate", selector.getFields().get(4));
Assert.assertEquals("ServingStatus", selector.getFields().get(5));
Assert.assertEquals("Settings", selector.getFields().get(6));
Assert.assertEquals("AverageCpc", selector.getFields().get(7));
}