public void testProcessListItem() {
String uid = UUID.randomUUID().toString();
ScriptProcess p = datastore.newProcess(uid, "addTwoNumbers.js", false, "aarfgs", uid, TransportType.Dummy);
p.setSource("");
datastore.writeProcess(p);
List<ProcessListItem> i = datastore.getProcessesForUser(uid);
assertEquals("good size", 1, i.size());
ProcessListItem l = i.get(0);
assertEquals("good pid", p.getPid(), l.getPid());
assertEquals("uid", uid, l.getUid());
}