shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplication.java
public void callAttach(Context context) {
    ReflectionHelpers.callInstanceMethod(Application.class, realApplication, "attach",
        ReflectionHelpers.ClassParameter.from(Context.class, context));
  }
public void callAttach(Context context) {
    ReflectionHelpers.callInstanceMethod(Application.class, realApplication, "attach",
        ReflectionHelpers.ClassParameter.from(Context.class, context));
  }
Attaches an application to a base context.

@param context The context with which to initialize the application, whose base context will
be attached to the application