}
private void checkXmlOutput(final String query, final HtmlForm form,
boolean onlyClusters) throws IOException, Exception
{
final XmlPage dcsResponse = (XmlPage) clickSubmit(form);
final String responseXml = dcsResponse.asXml();
final ProcessingResult dcsResult = ProcessingResult
.deserialize(new ByteArrayInputStream(responseXml.getBytes(UTF_8)));
assertThat(dcsResult.getAttributes().get(AttributeNames.QUERY)).isEqualTo(query);
if (onlyClusters)