/*
 * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package io.github.bonigarcia;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MessageComponent {

    @Autowired
    private MessageService service;

    public String getMessage() {
        return service.getMessage();
    }
}
@@ -659,71 +659,8 @@
 a;%0A%0A
-import org.springframework.beans.factory.annotation.Autowired;%0A
 impo
@@ -757,32 +757,123 @@
     
-@Autowired%0A    private M
+private MessageService messageService;%0A%0A    public MessageComponent(MessageService messageService) %7B%0A        this.m
 essa
@@ -886,16 +886,31 @@
 ice 
-s
+= messageS
 ervice;
+%0A    %7D
 %0A%0A  
@@ -955,17 +955,24 @@
  return 
-s
+messageS
 ervice.g
@@ -990,9 +990,10 @@
 ;%0A    %7D%0A
+%0A
 %7D

Unify variable names in components(junit5-spring)