@Test
public void checkStringParamTest() {

    String errorMessage = "Error";
    try {
        RestUtils.checkStringParam("", errorMessage);
    } catch (MobiWebException e) {
        assertEquals(400, e.getResponse().getStatus());
        assertEquals(errorMessage, e.getResponse().getStatusInfo().getReasonPhrase());
    }
    try {
        RestUtils.checkStringParam(null, errorMessage);
    } catch (MobiWebException e) {
        assertEquals(400, e.getResponse().getStatus());
        assertEquals(errorMessage, e.getResponse().getStatusInfo().getReasonPhrase());
    }
    RestUtils.checkStringParam("Test", errorMessage);
}