// set mock for DesignPageSite
IDesignPageSite pageSite;
Capture<Integer> openSourcePosition = new Capture<Integer>();
{
pageSite = EasyMock.createStrictMock(IDesignPageSite.class);
pageSite.openSourcePosition(capture(openSourcePosition));
EasyMock.replay(pageSite);
// do set
DesignPageSite.Helper.setSite(rootJavaInfo, pageSite);
}
// open Command