@Test
public void testSearchAttributes() throws Exception {

	SearchAttributesRequest request = new SearchAttributesRequest();
	request.setLayerId(LAYER_ID);
	request.setAttributePath("manyToOneAttr");
	SearchAttributesResponse response = (SearchAttributesResponse) dispatcher.execute(
			SearchAttributesRequest.COMMAND, request, null, "en");
	if (response.isError()) {
		response.getErrors().get(0).printStackTrace();
	}
	Assert.assertFalse(response.isError());
	List<Attribute<?>> attributes = response.getAttributes();
	Assert.assertNotNull(attributes);
	Assert.assertEquals(2, attributes.size());
}