Packet { public int getEventCount() { return mEventCount; } Packet(String targetURL);  Packet(String targetURL, @Nullable JSONObject JSONObject, int eventCount); String getTargetURL(); @Nullable JSONObject getPostData(); long getTimeStamp(); int getEventCount(); @NonNull @Override String toString();  }
@Test public void testEventCount() { Packet testPacket = new Packet("", null, 55); assertEquals(55, testPacket.getEventCount()); }