### Question:
VaadinServlet extends HttpServlet implements Constants { protected static String getLastPathParameter(String uri) { int lastPathStart = uri.lastIndexOf('/'); if (lastPathStart == -1) { return ""; } int semicolonPos = uri.indexOf(';', lastPathStart); if (semicolonPos < 0) { return ""; } else { String semicolonString = uri.substring(semicolonPos); return semicolonString; } }  @Override void init(javax.servlet.ServletConfig servletConfig); static VaadinServlet getCurrent(); @Deprecated static String stripSpecialChars(String themeName); static String getDefaultTheme(); @Override void destroy(); @Deprecated static final String safeEscapeForHtml(String unsafe);  }### Answer:
@Test public void testGetLastPathParameter() { Assert.assertEquals("", VaadinServlet.getLastPathParameter("http: Assert.assertEquals(";a", VaadinServlet.getLastPathParameter("http: Assert.assertEquals("", VaadinServlet.getLastPathParameter("http: Assert.assertEquals(";b=c", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet.getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b=1", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b=1,c=2", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b=1", VaadinServlet .getLastPathParameter("http: Assert.assertEquals(";b=1,c=2", VaadinServlet .getLastPathParameter("http: Assert.assertEquals("", VaadinServlet .getLastPathParameter("http: }