RefactorInsight-master/plugin/src/test/testData/miningService/commit_7/src/Bicycle.java
//move method
public class Bicycle {

    public int gear;
    public int speed;
    public PriceWithDiscount price;

    public Bicycle(int gear, int speed, PriceWithDiscount price) {
        this.gear = gear;
        this.speed = speed;
        this.speed *= 2;
        this.price = price;
    }

    public void applyBrakeAndDecrement(int decrement) {
        speed -= decrement;
    }

    public String toString() {
        String gears = gearToString();
        String speed = "speed of bicycle is " + speed;
        return gears + speed;
    }

    private String gearToString() {
        return "No of gears are " + gear + "\n";
    }

    private int doubleSpeed() {
        this.speed *= 2;
        return this.speed;
    }

    public int getPrice() {
        return price.getPrice();
    }

    public PriceWithDiscount get() {
        return price;
    }

}
