@Before
  public void configure() throws Exception {
    this.authorization = getMocker().getInstance(AuthorizationManager.class);
    this.modelBridge = getMocker().getInstance(ModelBridge.class);

    EntityReferenceProvider defaultEntityReferenceProvider =
        getMocker().getInstance(EntityReferenceProvider.class);
    when(defaultEntityReferenceProvider.getDefaultReference(EntityType.DOCUMENT))
        .thenReturn(new EntityReference("WebHome", EntityType.DOCUMENT, null));
  }
  @Before
  public void setUp() throws Exception {
    this.serializer = this.mocker.getComponentUnderTest();
    this.resolver = this.resolverMocker.getComponentUnderTest();

    EntityReferenceProvider referenceProvider =
        this.resolverMocker.getInstance(EntityReferenceProvider.class);
    when(referenceProvider.getDefaultReference(EntityType.WIKI)).thenReturn(DEFAULT_WIKI_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.SPACE))
        .thenReturn(DEFAULT_SPACE_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.DOCUMENT))
        .thenReturn(DEFAULT_PAGE_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.ATTACHMENT))
        .thenReturn(DEFAULT_ATTACHMENT_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.OBJECT))
        .thenReturn(DEFAULT_OBJECT_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.OBJECT_PROPERTY))
        .thenReturn(DEFAULT_OBJECT_PROPERTY_REFERENCE);
    when(referenceProvider.getDefaultReference(EntityType.CLASS_PROPERTY))
        .thenReturn(DEFAULT_CLASS_PROPERTY_REFERENCE);
  }