@SuppressWarnings("deprecation")
@Test
public void testMocksControl_NamedPartialMock_ConstructorCalled() throws Exception {
final IMocksControl ctrl = createControl();
final ConstructorArgs args = new ConstructorArgs(A.class.getConstructor(Integer.TYPE), 6);
final A a = ctrl.createMock("myMock", A.class, args, A.class.getMethod("bar", new Class[0]), A.class
.getMethod("toString", new Class[0]));
assertEquals("Constructor called so should be initialized", 6, a.i);