@Test
public void getActiveUserThatDoesNotExistTest() {

    // Setup:
    when(engineManager.retrieveUser(anyString())).thenReturn(Optional.empty());
    try {
        RestUtils.getActiveUser(context, engineManager);
    } catch (MobiWebException e) {
        assertEquals(401, e.getResponse().getStatus());
    }
}