}
@Test
public void testGetCorrespondingSetterWrapper() {
Foo foo = new GenerateInstance<Foo>(Foo.class).generate();
SetterWrapper setterWrapper = ReflectionTools.getCorrespondingSetterWrapper(foo, "getStroo", String.class);
setterWrapper.invoke(foo, "x");
Assert.assertEquals(foo.getStroo(), "x");
setterWrapper = ReflectionTools.getCorrespondingSetterWrapper(ReflectionTools.getGetterOfProperty(Foo.class, "stroo"));
setterWrapper.invoke(foo, "y");
Assert.assertEquals(foo.getStroo(), "y");