protected void assertValueFactoryValue(ServiceValueMetaData actual, String method, List<ServiceValueFactoryParameterMetaData> parameters, String defaultValue, Object dependency, ControllerState requiredState) throws Exception
{
assertNotNull(actual);
ServiceValueFactoryValueMetaData value = assertInstanceOf(ServiceValueFactoryValueMetaData.class, actual);
assertEquals(method, value.getMethod());
assertEquals(dependency, value.getDependency());
assertEquals(requiredState, value.getDependentState());
ServiceTextValueMetaData defMetadata = value.getDefaultValue();
assertEquals(defaultValue, (defMetadata == null ? null : defMetadata.getText()));
assertEquals(parameters, value.getParameterMetaData());
}