final String fileOne = "one.js";
final String fileTwo = "two.js";
Gson gson = new Gson();
JstdTestCaseStore store = new JstdTestCaseStore();
final TestCaseUpload serverFileUpload = new TestCaseUpload(store, gson);
JstdTestCase jstdTestCase = new JstdTestCase(Lists.newArrayList(createFile(fileOne, 3), createFile(fileTwo, 1)),
Collections.<FileInfo>emptyList(),
Collections.<FileInfo>emptyList(), "one");
serverFileUpload.handle(null, gson.toJson(Lists.<JstdTestCase>newArrayList(jstdTestCase)));
assertEquals(jstdTestCase, store.getCase(jstdTestCase.getId()));
}