### Question:
CmdDaoImpl implements CmdDao { @Override public void insert(List<Key> keys) { String sql = "INSERT INTO cmd(device_id,cmd,name,data) VALUES (?,?,?,?)"; for (Key key : keys) { template.update(sql, new Object[]{key.getDeviceId(), key.getCmd(), key.getName(), key.getData()}); } }  JdbcTemplate getTemplate(); void setTemplate(JdbcTemplate template); @Override Key queryKey(int deviceId, String cmd); @Override void updateKey(Key key); @Override void insert(List<Key> keys); @Override List<Key> queryKeyList(int deviceId);  }### Answer:
@Test public void insert() throws Exception { }