@Test
public void testValidDirectionFromDegree() {

  TextInstructions textInstructions = new TextInstructions("en", "v5");
  assertEquals("", textInstructions.directionFromDegree(null));
  assertEquals("north", textInstructions.directionFromDegree(0.));
  assertEquals("north", textInstructions.directionFromDegree(1.));
  assertEquals("north", textInstructions.directionFromDegree(20.));
  assertEquals("northeast", textInstructions.directionFromDegree(21.));
  assertEquals("northeast", textInstructions.directionFromDegree(69.));
  assertEquals("east", textInstructions.directionFromDegree(70.));
  assertEquals("east", textInstructions.directionFromDegree(110.));
  assertEquals("southeast", textInstructions.directionFromDegree(111.));
  assertEquals("southeast", textInstructions.directionFromDegree(159.));
  assertEquals("south", textInstructions.directionFromDegree(160.));
  assertEquals("south", textInstructions.directionFromDegree(200.));
  assertEquals("southwest", textInstructions.directionFromDegree(201.));
  assertEquals("southwest", textInstructions.directionFromDegree(249.));
  assertEquals("west", textInstructions.directionFromDegree(250.));
  assertEquals("west", textInstructions.directionFromDegree(290.));
  assertEquals("northwest", textInstructions.directionFromDegree(291.));
  assertEquals("northwest", textInstructions.directionFromDegree(339.));
  assertEquals("north", textInstructions.directionFromDegree(340.));
  assertEquals("north", textInstructions.directionFromDegree(360.));
}