@Test public void serialize() throws Exception { TestResourceReference resource = new TestResourceReference(); ResourceReferenceSerializer serializer = mock(ResourceReferenceSerializer.class); ComponentManager componentManager = this.mocker.getInstance(ComponentManager.class, "context"); when(componentManager.getInstance(new DefaultParameterizedType(null, ResourceReferenceSerializer.class, TestResourceReference.class, ExtendedURL.class), "standard")).thenReturn(serializer); this.mocker.getComponentUnderTest().serialize(resource); verify(serializer).serialize(same(resource)); }
@Override public ExtendedURL serialize(ResourceReference reference) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException { return serialize(reference, "standard"); }
StandardExtendedURLResourceReferenceSerializer extends AbstractExtendedURLResourceReferenceSerializer { @Override public ExtendedURL serialize(ResourceReference reference) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException { return serialize(reference, "standard"); } }
StandardExtendedURLResourceReferenceSerializer extends AbstractExtendedURLResourceReferenceSerializer { @Override public ExtendedURL serialize(ResourceReference reference) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException { return serialize(reference, "standard"); }  }
StandardExtendedURLResourceReferenceSerializer extends AbstractExtendedURLResourceReferenceSerializer { @Override public ExtendedURL serialize(ResourceReference reference) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException { return serialize(reference, "standard"); }  @Override ExtendedURL serialize(ResourceReference reference); }
StandardExtendedURLResourceReferenceSerializer extends AbstractExtendedURLResourceReferenceSerializer { @Override public ExtendedURL serialize(ResourceReference reference) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException { return serialize(reference, "standard"); }  @Override ExtendedURL serialize(ResourceReference reference);  }