FunctionBlacklistPolicyFactoryBean extends SingletonFactoryBean<FunctionBlacklistPolicy> { public void setName(final String name) { _name = name; }  UniqueId getUniqueId(); void setUniqueId(final UniqueId uniqueId); String getName(); void setName(final String name); int getDefaultEntryActivationPeriod(); void setDefaultEntryActivationPeriod(final int defaultEntryActivationPeriod); boolean isWildcard(); void setWildcard(final boolean wildcard); int getWildcardActivationPeriod(); void setWildcardActivationPeriod(final int wildcard); boolean isFunction(); void setFunction(final boolean function); int getFunctionActivationPeriod(); void setFunctionActivationPeriod(final int function); boolean isParameterizedFunction(); void setParameterizedFunction(final boolean parameterizedFunction); int getParameterizedFunctionActivationPeriod(); void setParameterizedFunctionActivationPeriod(final int parameterizedFunction); boolean isPartialNode(); void setPartialNode(final boolean partialNode); int getPartialNodeActivationPeriod(); void setPartialNodeActivationPeriod(final int partialNode); boolean isBuildNode(); void setBuildNode(final boolean buildNode); int getBuildNodeActivationPeriod(); void setBuildNodeActivationPeriod(final int buildNode); boolean isExecutionNode(); void setExecutionNode(final boolean executionNode); int getExecutionNodeActivationPeriod(); void setExecutionNodeActivationPeriod(final int executionNode); Collection<Entry> getEntries(); void setEntries(final Collection<Entry> entries);  }
@Test(expectedExceptions = {IllegalArgumentException.class }) public void testNoUniqueIdOrName() { final FunctionBlacklistPolicyFactoryBean bean = new FunctionBlacklistPolicyFactoryBean(); bean.setName(null); bean.afterPropertiesSet(); }