@Test
public void resolveInstalledExtensionId() throws Exception
{

    ExtensionId extensionId = new ExtensionId("extension", "version");
    doThrow(ResolveException.class).when(this.coreExtensionRepository).resolve(extensionId);
    InstalledExtension extension = mock(InstalledExtension.class);
    when(this.installedExtensionRepository.resolve(extensionId)).thenReturn(extension);
    when(extension.getId()).thenReturn(extensionId);
    assertSame(extension, this.mocker.getComponentUnderTest().resolveExtension(extensionId));
}