Buggy code:
public class OperationTransformationTestCase { private static final PathAddress TEST_DISCARD = PathAddress . pathAddress ( PathElement . pathElement ( "test" , "discard" ) ) ; private static final PathAddress TEST_NORMAL = PathAddress . pathAddress ( PathElement . pathElement ( "test" , "normal" ) ) ; private static final ModelNode subsystems = new ModelNode ( ) ; private final GlobalTransformerRegistry registry = new GlobalTransformerRegistry ( ) ; private final ManagementResourceRegistration resourceRegistration = Factory . create ( OperationTransformationTestCase . ROOT ) ; private final OperationTransformer NOOP_TRANSFORMER = new OperationTransformer ( ) { @ Override public TransformedOperation transformOperation ( TransformationContext context , PathAddress address , ModelNode operation ) { } } ; private final Resource resourceRoot = Resource . Factory . create ( ) ; @ Before public void setUp ( ) { } @ Test public void testDiscardOperation ( ) throws OperationFailedException { } @ Test public void testBasicTransformation ( ) throws OperationFailedException { } @ Test public void testDefaultPolicy ( ) throws OperationFailedException { } @ Test public void testMergeSubTree ( ) { } @ Test public void testGetSubRegistry ( ) { } @ Test public void testConcreteRegistry ( ) throws Exception { } @ Test public void testAddSubsystem ( ) throws Exception { } protected TransformationTarget create ( final TransformerRegistry registry , ModelVersion version ) { <START_BUG> return TransformationTargetImpl . create ( registry , version , Collections . < PathAddress , ModelVersion > emptyMap ( ) , HOST ) ; <END_BUG> } protected Resource transform ( final TransformationTarget target , final Resource root ) throws OperationFailedException { } protected ModelNode transform ( final ModelNode operation , int major , int minor ) throws OperationFailedException { } protected ModelNode transform ( final PathAddress address , final ModelNode operation , int major , int minor ) throws OperationFailedException { } TransformationContext TRANSFORMATION_CONTEXT = new TransformationContext ( ) { @ Override public TransformationTarget getTarget ( ) { } @ Override public ProcessType getProcessType ( ) { } @ Override public RunningMode getRunningMode ( ) { } @ Override public ImmutableManagementResourceRegistration getResourceRegistration ( final PathAddress address ) { } @ Override public ImmutableManagementResourceRegistration getResourceRegistrationFromRoot ( PathAddress address ) { } @ Override public Resource readResource ( final PathAddress address ) { } @ Override public Resource readResourceFromRoot ( final PathAddress address ) { } @ Override public ModelNode resolveExpressions ( ModelNode node ) throws OperationFailedException { } } ; private static final DescriptionProvider NOOP_PROVIDER = new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { } } ; private static final ResourceDefinition ROOT = new org . jboss . as . controller . SimpleResourceDefinition ( PathElement . pathElement ( "test" ) , OperationTransformationTestCase . NOOP_PROVIDER ) ; private static final ExpressionResolver resolver = new ExpressionResolver ( ) { @ Override public ModelNode resolveExpressions ( ModelNode node ) throws OperationFailedException { } } ; }

Fix:
return TransformationTargetImpl . create ( registry , version , Collections . < PathAddress , ModelVersion > emptyMap ( ) , null , HOST ) ;