@Test
public void testEnrollReqToJsonAttrEmptyName() throws Exception {

    thrown.expect(InvalidArgumentException.class);
    thrown.expectMessage("name may not be null or empty.");
    EnrollmentRequest testEnrollReq = new EnrollmentRequest();
    testEnrollReq.addAttrReq("");
}