access servlet which uses runas with correct role needed for secured ejb invocation . this method will run init and doget method and stores results . concode_field_sep String DEPLOYMENT concode_elem_sep String incorrectRoleResult concode_elem_sep File CORRECT_ROLE_AND_UNDEPLOY concode_elem_sep String correctRoleResult concode_elem_sep File WORK_DIR concode_elem_sep ManagementClient managementClient concode_elem_sep Deployer deployer concode_elem_sep File INCORRECT_ROLE_AND_STOP_SERVER concode_elem_sep File INCORRECT_ROLE_AND_UNDEPLOY concode_elem_sep File CORRECT_ROLE_AND_STOP_SERVER concode_field_sep void checkDoGetMethodWithCorrectRole concode_elem_sep void runDestroyMethodInUndeploying concode_elem_sep void checkDoGetMethodWithIncorrectRole concode_elem_sep void checkDestroyInUndeployingMethodWithIncorrectRole concode_elem_sep String readFirstLineOfFile concode_elem_sep void checkDestroyMethodInStopServerWithCorrectRole concode_elem_sep void checkInitMethodWithIncorrectRole concode_elem_sep void checkInitMethodWithCorrectRole concode_elem_sep void checkDestroyMethodInStopServerWithIncorrectRole concode_elem_sep void checkDestroyInUndeployingMethodWithCorrectRole concode_elem_sep void finish concode_elem_sep void initialize concode_elem_sep void runServletWithIncorrectRole concode_elem_sep void runDestroyMethodInStopServer concode_elem_sep WebArchive deployment
void function ( @ ArquillianResource URL arg0 ) { final URL loc0 = new URL ( arg0 . toExternalForm ( ) + RunAsAdminServlet . SERVLET_PATH . substring ( 1 ) + "srini_string" + Utils . encodeQueryParam ( CallProtectedEjbServlet . FILE_PARAM , CORRECT_ROLE_AND_UNDEPLOY . getAbsolutePath ( ) ) ) ; correctRoleResult = Utils . makeCall ( loc0 . toURI ( ) , HTTP_OK ) ; }