@Test
public void setDeletedTest() {

  ListResult<SysDict> listResult = queryTestDictList();
  for (SysDict dict : listResult.getRecords()) {
    Response response = sysDictRestApi.delete(dict.getId(), 1);
    CommonDataTest.assertResponseSuccess(response);
  }
  ListResult<SysDict> listResult2 = queryTestDictList();
  for (SysDict dict : listResult2.getRecords()) {
    assertEquals((int) dict.getDeleted(), 1);
  }
  for (SysDict dict : listResult2.getRecords()) {
    Response response = sysDictRestApi.delete(dict.getId(), 0);
    CommonDataTest.assertResponseSuccess(response);
  }
  ListResult<SysDict> listResult3 = queryTestDictList();
  for (SysDict dict : listResult3.getRecords()) {
    assertEquals((int) dict.getDeleted(), 0);
  }
}