@@ -0,0 +1,1084 @@
+package com.google.sps;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport com.google.gson.JsonObject;%0Aimport com.google.sps.util.BodyParser;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0Aimport static org.mockito.Mockito.*;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0A%0A@RunWith(JUnit4.class)%0Apublic class BodyParserTest %7B%0A  private static final String JSON_EXAMPLE = %22%7B%5C%22prop1%5C%22:12345, %5C%22prop2%5C%22:asdf%7D%22;%0A  private HttpServletRequest request;%0A%0A  @Before%0A  public void setUp() throws IOException %7B%0A    request = mock(HttpServletRequest.class);%0A    when(request.getReader()).thenReturn(new BufferedReader(new StringReader(JSON_EXAMPLE)));%0A  %7D%0A%0A  @Test%0A  public void testSerializedJsonParse() throws IOException %7B%0A    JsonObject obj = BodyParser.parseJsonObjectFromRequest(request);%0A    Assert.assertEquals(obj.getAsJsonPrimitive(%22prop1%22).getAsInt(), 12345);%0A    Assert.assertEquals(obj.getAsJsonPrimitive(%22prop2%22).getAsString(), %22asdf%22);%0A  %7D%0A%7D

Add unit test for BodyParser