ProtocolFormatter { public static String formatRequest(String url, Position position) { return formatRequest(url, position, null); }  static String formatRequest(String url, Position position); static String formatRequest(String url, Position position, String alarm);  }
@Test public void testFormatRequest() throws Exception { Position position = new Position("123456789012345", new Location("gps"), 0); position.setTime(new Date(0)); String url = ProtocolFormatter.formatRequest("http: assertEquals("http: }
@Test public void testFormatPathPortRequest() throws Exception { Position position = new Position("123456789012345", new Location("gps"), 0); position.setTime(new Date(0)); String url = ProtocolFormatter.formatRequest("http: assertEquals("http: }
@Test public void testFormatAlarmRequest() throws Exception { Position position = new Position("123456789012345", new Location("gps"), 0); position.setTime(new Date(0)); String url = ProtocolFormatter.formatRequest("http: assertEquals("http: }