### Question:
OSGiProcessApplication extends AbstractProcessApplication { @Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); @Override ProcessApplicationReference getReference(); @Override ClassLoader getProcessApplicationClassloader(); Bundle getBundle();  }### Answer:
@Test public void getReference() throws ProcessApplicationUnavailableException { OSGiProcessApplication app = new OSGiProcessApplication(createBundleMock(), createBlueprintContainerMock()); ProcessApplicationReference ref = app.getReference(); assertThat(ref, is(instanceOf(OSGiProcessApplicationReference.class))); assertThat((OSGiProcessApplication) ref.getProcessApplication(), is(sameInstance(app))); assertThat(ref.getName(), is(BUNDLE_NAME)); }