public void doGet_invalid_plugin() throws IOException, ServletException {
LocalizationServlet ls = new LocalizationServlet();
MockHttpServletRequest req = new MockHttpServletRequest();
MockHttpServletResponse resp = new MockHttpServletResponse();
req.setParameter( "plugin", "invalid-plugin" );
ls.doGet( req, resp );
assertEquals( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp.getStatus() );
}
public static class TestPluginProvider implements IPluginProvider {
public static final String TEST_PLUGIN = "test-plugin";