reset(binding);
// Last test is with an annotation value
IAnnotationBinding annoBinding = createMock(IAnnotationBinding.class);
ITypeBinding annoTypeBinding = createMock(ITypeBinding.class);
IMemberValuePairBinding memberValuePairBinding = createMock(IMemberValuePairBinding.class);
IPackageBinding packageBinding = createMock(IPackageBinding.class);
expect(binding.getQualifiedName()).andReturn("de.supertest.TestClass");
expect(binding.getAnnotations()).andReturn(new IAnnotationBinding[] {annoBinding});
expect(annoBinding.getAnnotationType()).andReturn(annoTypeBinding);
expect(annoTypeBinding.getQualifiedName()).andReturn(BelongsToComponent.class.getCanonicalName());
expect(annoBinding.getAllMemberValuePairs()).andReturn(new IMemberValuePairBinding[]
{ memberValuePairBinding });
expect(memberValuePairBinding.getName()).andReturn("value");
expect(memberValuePairBinding.getValue()).andReturn("Comp1");
expect(binding.getName()).andReturn("TestClass");
expect(binding.getPackage()).andReturn(packageBinding);
expect(packageBinding.getName()).andReturn("de.supertest");
expect(binding.getAnnotations()).andReturn(new IAnnotationBinding[] {}).anyTimes();