@Test
 public void testLocationUrl() {
   Location location = new Location();
   location.setIdentifier("ABC");
   String url = urlService.getLocationUrl(location, request);
   assertEquals("/context/s/location?id=ABC", url);
 }
 @Test
 public void testInstructorUrl() {
   Instructor instructor = new Instructor();
   instructor.setIdentifier("username");
   String url = urlService.getInstructorUrl(instructor, request);
   assertEquals("/context/s/person?id=username", url);
 }
  @Before
  public void setUp() {

    MockitoAnnotations.initMocks(this);

    urlService = new UPortalURLServiceImpl();
    urlService.setPortalContext("/context");
  }