}
@Test
public void testNotExistingOrSystemEntity() throws ParseException, DatabaseException, IOException
{
MockDatabase db = new MockDatabase();
db.setLogin(new MockLogin(true));
Model model = when(mock(Model.class).getEntities(false, false)).thenReturn(new Vector<Entity>()).getMock();
db.setMetaData(model);
molgenisRequest.setDatabase(db);
molgenisRequest.setServicePath(API_FIND_URI);
mockHttpServletRequest.setPathInfo(API_FIND_URI + "/XXXX");