@Test
public void testDoIt_calls_afterburner() throws CannotCompileException, AfterBurnerImpossibleException, NotFoundException {

    //GIVEN
    afterBurnerMock = EasyMock.createMock(AfterBurner.class);
    afterBurnerMock.insertConstructor((InsertableConstructor) EasyMock.anyObject());
    EasyMock.replay(afterBurnerMock);
    builder = new InsertableConstructorBuilder(afterBurnerMock);
    CtClass classToInsertInto = CtClass.intType;
    String body = "";
    //WHEN
    builder
        .insertIntoClass(classToInsertInto)
        .withBody(body)
        .doIt();
    //THEN
    EasyMock.verify(afterBurnerMock);
}