assertEquals("Tell all your friends about your new bot!", field.getDesc());
}
@Test
public void testOptionsParsing() {
final Field field = new Field(XMLBuilder.fromXML("<field type='list-single'" + " label='Maximum number of subscribers' var='maxsubs'>"
+ " <value>20</value> <option label='10'><value>10</value></option>"
+ " <option label='20'><value>20</value></option> <option label='30'><value>30</value></option>"
+ " <option label='50'><value>50</value></option> <option label='100'><value>100</value></option>"
+ " <option label='None'><value>none</value></option></field>"));
assertEquals(FieldType.LIST_SINGLE, field.getType());
assertEquals("Maximum number of subscribers", field.getLabel());
assertEquals("maxsubs", field.getVar());
assertEquals(null, field.getDesc());
final List<String> values = field.getValues();
assertEquals(1, values.size());
assertEquals("20", values.get(0));
final List<Option> options = field.getOptions();
assertEquals(6, options.size());
assertEquals("None", options.get(5).getLabel());
assertEquals("none", options.get(5).getValue());
}