@Test
 @Use(field = "direction", enumeration = true)
 public void testJointPoint() {
   int tolerance = 4;
   calendarAttributes.set(CalendarAttributes.jointPoint, direction.value);
   Locations inputLocations = calendar.getLocations();
   Point locationInput = null;
   Point locationPopup = calendar.openPopup().getLocations().getTopLeft();
   switch (direction) {
     case NULL:
     case AUTO:
       // auto (direction depends on browser/screen resolution)
     case BOTTOMLEFT:
       locationInput = inputLocations.getBottomLeft();
       break;
     case BOTTOMRIGHT:
       locationInput = inputLocations.getBottomRight();
       break;
     case TOPLEFT:
       locationInput = inputLocations.getTopLeft();
       break;
     case TOPRIGHT:
       locationInput = inputLocations.getTopRight();
       break;
   }
   tolerantAssertLocations(locationInput, locationPopup, tolerance);
 }