public void testExtendedInfo() throws EntityFormatException {
// test if the data form is correctly added to the disco info response
ServiceCollector serviceCollector = new ServiceCollector();
serviceCollector.addInfoRequestListener(new InfoRequestListener() {
public List<InfoElement> getInfosFor(InfoRequest request) throws ServiceDiscoveryRequestException {
DataForm form = new DataForm();
form.setTitle("formtitle");
form.setType(DataForm.Type.form);