IssuerProviderIssuerDecoratedSpreadPeriodic implements IssuerProviderInterface { @Override public IssuerProviderInterface copy() { throw new UnsupportedOperationException("Copy not supported for decorated providers"); } IssuerProviderIssuerDecoratedSpreadPeriodic(IssuerProviderInterface issuerProvider, LegalEntity issuer,
      double spread, int nPeriodsPerYear); @Override MulticurveProviderInterface getMulticurveProvider(); @Override IssuerProviderInterface getIssuerProvider(); @Override IssuerProviderInterface copy(); @Override double getDiscountFactor(final LegalEntity issuer, final Double time); @Override String getName(final Pair<Object, LegalEntityFilter<LegalEntity>> issuerCcy); @Override String getName(final LegalEntity issuerCcy); @Override Set<String> getAllNames(); @Override double[] parameterSensitivity(final String name, final List<DoublesPair> pointSensitivity); @Override double[] parameterForwardSensitivity(final String name, final List<ForwardSensitivity> pointSensitivity); @Override Integer getNumberOfParameters(final String name); @Override List<String> getUnderlyingCurvesNames(final String name); @Override Set<Pair<Object, LegalEntityFilter<LegalEntity>>> getIssuers(); @Override Set<String> getAllCurveNames(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = UnsupportedOperationException.class) public void copyFailTest() { IssuerProviderIssuerDecoratedSpreadPeriodic wrapper = new IssuerProviderIssuerDecoratedSpreadPeriodic( ISSUER_PROVIDER, ISSUER_DSC, 0.1, 1); wrapper.copy(); }