### Question:
UtilMath { public static int wrap(int value, int min, int max) { int newValue = value; final int step = max - min; if (newValue >= max) { while (newValue >= max) { newValue -= step; } } else if (newValue < min) { while (newValue < min) { newValue += step; } } return newValue; } private  UtilMath(); static double getRound(double speed, double value); static boolean isBetween(int value, int min, int max); static boolean isBetween(double value, double min, double max); static int clamp(int value, int min, int max); static long clamp(long value, long min, long max); static double clamp(double value, double min, double max); static double curveValue(double value, double dest, double speed); static double getDistance(double x1, double y1, double x2, double y2); static double getDistance(Localizable a, Localizable b); static double getDistance(double x1, double y1, double x2, double y2, int w2, int h2); static double getDistance(double x1, double y1, int w1, int h1, double x2, double y2, int w2, int h2); static int wrap(int value, int min, int max); static int wrapAngle(int angle); static double wrapDouble(double value, double min, double max); static int getRounded(double value, int round); static int getRoundedC(double value, int round); static double cos(double degree); static double sin(double degree); static int getSign(double value);  }### Answer:
@Test void testWrap() { assertEquals(0, UtilMath.wrap(360, 0, 360)); assertEquals(359, UtilMath.wrap(-1, 0, 360)); assertEquals(180, UtilMath.wrap(180, 0, 360)); }