public void testGetConstraintMethods() {
BeanDescriptor beanDescriptor = getBeanDescriptor( Mixed.class );
Set<MethodDescriptor> methodDescriptors = beanDescriptor.getConstrainedMethods( MethodType.GETTER );
assertEquals( methodDescriptors.size(), 1, "There should be only one getter" );
MethodDescriptor methodDescriptor = methodDescriptors.iterator().next();
assertEquals( methodDescriptor.getName(), "getFoo", "Unexpected method name" );
methodDescriptors = beanDescriptor.getConstrainedMethods( MethodType.NON_GETTER );
assertEquals( methodDescriptors.size(), 1, "There should be only one non-getter" );
methodDescriptor = methodDescriptors.iterator().next();
assertEquals( methodDescriptor.getName(), "foo", "Unexpected method name" );
methodDescriptors = beanDescriptor.getConstrainedMethods( MethodType.NON_GETTER, MethodType.GETTER );
assertEquals( methodDescriptors.size(), 2, "There should be two methods" );
// passing null as main argument