@Test(expected = IllegalArgumentException.class)
public void testMultipleNumField() {
Builder docBuilder = Document.newBuilder();
docBuilder.addField(Field.newBuilder().setName("numfield").setNumber(123));
docBuilder.addField(Field.newBuilder().setName("numfield").setNumber(789));
}
@Test(expected = IllegalArgumentException.class)
public void testMultipleDateField() {
Builder docBuilder = Document.newBuilder();