@Test
public void testMimicFields() throws Exception {

    // GIVEN
    src.addField(new CtField(CtClass.intType, "foo", src));
    // WHEN
    mimicCreator.mimicFields(src, dst);
    // THEN
    Class<?> dstClass = dst.toClass();
    assertHasFooField(dst);
    assertHasFooField(dstClass.newInstance(), 0);
}