// Path: src/main/java/au/net/woodberry/ta/toolbox/object/PivotPoint.java
// public class PivotPoint {
// 
//     private TADecimal pivotPoint; // <- this is the pivot point pivotPoint
//     private TADecimal resistanceOne;
//     private TADecimal resistanceTwo;
//     private TADecimal supportOne;
//     private TADecimal supportTwo;
// 
//     public TADecimal getPivotPoint() {
//         return pivotPoint;
//     }
// 
//     public void setPivotPoint(TADecimal pivotPoint) {
//         this.pivotPoint = pivotPoint;
//     }
// 
//     public TADecimal getResistanceOne() {
//         return resistanceOne;
//     }
// 
//     public void setResistanceOne(TADecimal resistanceOne) {
//         this.resistanceOne = resistanceOne;
//     }
// 
//     public TADecimal getResistanceTwo() {
//         return resistanceTwo;
//     }
// 
//     public void setResistanceTwo(TADecimal resistanceTwo) {
//         this.resistanceTwo = resistanceTwo;
//     }
// 
//     public TADecimal getSupportOne() {
//         return supportOne;
//     }
// 
//     public TADecimal getSupportTwo() {
//         return supportTwo;
//     }
// 
//     public void setSupportOne(TADecimal supportOne) {
//         this.supportOne = supportOne;
//     }
// 
//     public void setSupportTwo(TADecimal supportTwo) {
//         this.supportTwo = supportTwo;
//     }
// }


import au.net.woodberry.ta.toolbox.object.PivotPoint;
import eu.verdelhan.ta4j.TADecimal;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
    }
    
    @Test
    public void testGetRegionBetweenPivotPointAndResistanceOne() {
        assertEquals(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(5)));
        assertEquals(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(6)));
    }

    @Test
    public void testGetRegionBetweenResistanceOneAndResistanceTwo() {
        assertEquals(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(7)));
        assertEquals(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(9)));
    }

    @Test
    public void testGetRegionAboveResistanceTwo() {
        assertEquals(PivotPointRegion.ABOVE_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(10)));
    }
    
    @Test
    public void testDirectionUp() {
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BELOW_SUPPORT_TWO, PivotPointRegion.BETWEEN_SUPPORT_TWO_AND_SUPPORT_ONE));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_SUPPORT_TWO_AND_SUPPORT_ONE, PivotPointRegion.BETWEEN_SUPPORT_ONE_AND_PIVOT_POINT));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_SUPPORT_ONE_AND_PIVOT_POINT, PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.ABOVE_RESISTANCE_TWO));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BELOW_SUPPORT_TWO, PivotPointRegion.ABOVE_RESISTANCE_TWO));
    }
    
    @Test
// Path: src/main/java/au/net/woodberry/ta/toolbox/object/PivotPoint.java
// public class PivotPoint {
// 
//     private TADecimal pivotPoint; // <- this is the pivot point pivotPoint
//     private TADecimal resistanceOne;
//     private TADecimal resistanceTwo;
//     private TADecimal supportOne;
//     private TADecimal supportTwo;
// 
//     public TADecimal getPivotPoint() {
//         return pivotPoint;
//     }
// 
//     public void setPivotPoint(TADecimal pivotPoint) {
//         this.pivotPoint = pivotPoint;
//     }
// 
//     public TADecimal getResistanceOne() {
//         return resistanceOne;
//     }
// 
//     public void setResistanceOne(TADecimal resistanceOne) {
//         this.resistanceOne = resistanceOne;
//     }
// 
//     public TADecimal getResistanceTwo() {
//         return resistanceTwo;
//     }
// 
//     public void setResistanceTwo(TADecimal resistanceTwo) {
//         this.resistanceTwo = resistanceTwo;
//     }
// 
//     public TADecimal getSupportOne() {
//         return supportOne;
//     }
// 
//     public TADecimal getSupportTwo() {
//         return supportTwo;
//     }
// 
//     public void setSupportOne(TADecimal supportOne) {
//         this.supportOne = supportOne;
//     }
// 
//     public void setSupportTwo(TADecimal supportTwo) {
//         this.supportTwo = supportTwo;
//     }
// }


// Path: src/test/java/au/net/woodberry/ta/toolbox/enums/PivotPointRegionTest.java
import au.net.woodberry.ta.toolbox.object.PivotPoint;
import eu.verdelhan.ta4j.TADecimal;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

    }
    
    @Test
    public void testGetRegionBetweenPivotPointAndResistanceOne() {
        assertEquals(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(5)));
        assertEquals(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(6)));
    }

    @Test
    public void testGetRegionBetweenResistanceOneAndResistanceTwo() {
        assertEquals(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(7)));
        assertEquals(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(9)));
    }

    @Test
    public void testGetRegionAboveResistanceTwo() {
        assertEquals(PivotPointRegion.ABOVE_RESISTANCE_TWO, PivotPointRegion.getRegion(pivotPoint, TADecimal.valueOf(10)));
    }
    
    @Test
    public void testDirectionUp() {
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BELOW_SUPPORT_TWO, PivotPointRegion.BETWEEN_SUPPORT_TWO_AND_SUPPORT_ONE));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_SUPPORT_TWO_AND_SUPPORT_ONE, PivotPointRegion.BETWEEN_SUPPORT_ONE_AND_PIVOT_POINT));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_SUPPORT_ONE_AND_PIVOT_POINT, PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_PIVOT_POINT_AND_RESISTANCE_ONE, PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BETWEEN_RESISTANCE_ONE_AND_RESISTANCE_TWO, PivotPointRegion.ABOVE_RESISTANCE_TWO));
        assertEquals(Direction.UP, PivotPointRegion.getDirection(PivotPointRegion.BELOW_SUPPORT_TWO, PivotPointRegion.ABOVE_RESISTANCE_TWO));
    }
    
    @Test
    public void testDirectionDown() {