Presently the PolicyConfigurationFactory test implementations return a new decorated PolicyConfiguration when calling the getPolicyConfiguration(String, boolean) method, but they don't return the same one each time that method is called.
Also the getPolicyConfiguration() and getPolicyConfiguration(String) methods are not returning the decorated PolicyConfiguration that is returned from the getPolicyConfiguration(String, boolean) or null if the getPolicyConfiguration(String, boolean) method was not called yet. Alternatively, those methods, could get and store a decorated PolicyConfiguration object if the Factory that is wrapped returns one from its implementation or null if the wrapped factory returns null.
Presently the
PolicyConfigurationFactorytest implementations return a new decoratedPolicyConfigurationwhen calling thegetPolicyConfiguration(String, boolean)method, but they don't return the same one each time that method is called.Also the
getPolicyConfiguration()andgetPolicyConfiguration(String)methods are not returning the decoratedPolicyConfigurationthat is returned from thegetPolicyConfiguration(String, boolean)ornullif thegetPolicyConfiguration(String, boolean)method was not called yet. Alternatively, those methods, could get and store a decoratedPolicyConfigurationobject if the Factory that is wrapped returns one from its implementation ornullif the wrapped factory returnsnull.