String insert = "Insert into " + TABLE_NAME
+ " (column1,column2,column3) values (7,234,'def');";
Pair<String, Pair<Boolean, List<ExecuteResult>>> insertRet = client
.execute(insert);
OperationStatus operationStatus = insertRet.getSecond().getSecond().get(0)
.getStatus();
assertTrue(operationStatus.getOperationStatusCode() == OperationStatusCode.FAILURE);
assertTrue(operationStatus.getExceptionClassname().equals(
"com.alibaba.wasp.PrimaryKeyAlreadyExistsException"));
}