// TODO sorting on many-to-one or one-to-many not supported.
}
@Test
public void testGetAttributes() throws Exception {
VectorLayerAssociationSupport support = (VectorLayerAssociationSupport) layer;
List<Attribute<?>> attributes = support.getAttributes(MTO, Filter.INCLUDE);
Assert.assertNotNull(attributes);
attributes = support.getAttributes(MTO, null);
Assert.assertNotNull(attributes);
try {
attributes = support.getAttributes(null, Filter.INCLUDE);
Assert.fail();
} catch (HibernateLayerException e) {
// We expect this exception to occur.
}
}