Buggy code:
public class PublishAndSendElection { private static Logger log = Logger . getLogger ( PublishAndSendElection . class . getName ( ) ) ; private static EventVS eventVS ; private static VotingSimulationData simulationData ; private static boolean isWithVoteCancellation = false ; private static String publisherNIF = "00111222V" ; private static List < String > synchronizedElectorList ; private static ExecutorService simulatorExecutor ; private static ExecutorCompletionService responseService ; private static final Map < String , VoteVSHelper > voteVSMap = new ConcurrentHashMap < > ( ) ; public static void main ( String [ ] args ) throws Exception { ContextVS . getInstance ( ) . initTestEnvironment ( Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( "TestsApp.properties" ) , ".//TestDir" ) ; PublishAndSendElection . eventVS = new EventVS ( ) ; PublishAndSendElection . eventVS . setSubject ( "voting<seq2seq4repair_space>subject" ) ; PublishAndSendElection . eventVS . setContent ( Base64 . getEncoder ( ) . encodeToString ( "<p>election<seq2seq4repair_space>content<//p>" . getBytes ( ) ) ) ; PublishAndSendElection . eventVS . setDateBegin ( new Date ( ) ) ; PublishAndSendElection . eventVS . setFieldsEventVS ( new java . util . HashSet ( Arrays . asList ( new FieldEventVS ( "field1" , null ) , new FieldEventVS ( "field2" , null ) ) ) ) ; UserBaseSimulationData userBaseSimulationData = new UserBaseSimulationData ( ) ; userBaseSimulationData . setUserIndex ( 100 ) ; userBaseSimulationData . setNumUsersWithoutRepresentative ( 1 ) ; userBaseSimulationData . setNumUsersWithoutRepresentativeWithVote ( 1 ) ; userBaseSimulationData . setNumRepresentatives ( 5 ) ; userBaseSimulationData . setNumRepresentativesWithVote ( 1 ) ; userBaseSimulationData . setNumUsersWithRepresentative ( 2 ) ; userBaseSimulationData . setNumUsersWithRepresentativeWithVote ( 1 ) ; PublishAndSendElection . simulationData = new VotingSimulationData ( ) ; <START_BUG> PublishAndSendElection . simulationData . setServerURL ( "http:////localhost:8080//AccessControl" ) ; <END_BUG> PublishAndSendElection . simulationData . setMaxPendingResponses ( 50 ) ; PublishAndSendElection . simulationData . setUserBaseData ( userBaseSimulationData ) ; PublishAndSendElection . simulationData . setEventVS ( PublishAndSendElection . eventVS ) ; Map timerMap = new HashMap < > ( ) ; timerMap . put ( "active" , false ) ; timerMap . put ( "time" , "00:00:10" ) ; PublishAndSendElection . simulationData . setTimerMap ( timerMap ) ; ResponseVS responseVS = HttpHelper . getInstance ( ) . getData ( ActorVS . getServerInfoURL ( PublishAndSendElection . simulationData . getServerURL ( ) ) , JSON ) ; if ( ( ResponseVS . SC_OK ) != ( responseVS . getStatusCode ( ) ) ) throw new org . votingsystem . throwable . ExceptionVS ( responseVS . getMessage ( ) ) ; ActorVS actorVS = ( ( org . votingsystem . dto . ActorVSDto ) ( responseVS . getMessage ( org . votingsystem . dto . ActorVSDto . class ) ) ) . getActorVS ( ) ; if ( ! ( actorVS instanceof AccessControlVS ) ) throw new org . votingsystem . throwable . ExceptionVS ( ( "Expected<seq2seq4repair_space>access<seq2seq4repair_space>control<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>" + ( actorVS . getType ( ) . toString ( ) ) ) ) ; if ( ( ( actorVS . getEnvironmentVS ( ) ) == null ) || ( ( EnvironmentVS . DEVELOPMENT ) != ( actorVS . getEnvironmentVS ( ) ) ) ) { throw new org . votingsystem . throwable . ExceptionVS ( ( "Expected<seq2seq4repair_space>DEVELOPMENT<seq2seq4repair_space>environment<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>" + ( actorVS . getEnvironmentVS ( ) ) ) ) ; } ContextVS . getInstance ( ) . setAccessControl ( ( ( AccessControlVS ) ( actorVS ) ) ) ; PublishAndSendElection . eventVS = PublishAndSendElection . publishEvent ( PublishAndSendElection . simulationData . getEventVS ( ) , PublishAndSendElection . publisherNIF , "publishElectionMsgSubject" ) ; PublishAndSendElection . simulatorExecutor = Executors . newFixedThreadPool ( 100 ) ; CountDownLatch userBaseDataLatch = new CountDownLatch ( 1 ) ; PublishAndSendElection . simulationData . getUserBaseData ( ) . sendData ( userBaseDataLatch ) ; userBaseDataLatch . await ( ) ; PublishAndSendElection . sendVotes ( ( ( VotingSimulationData ) ( PublishAndSendElection . simulationData ) ) . getUserBaseData ( ) ) ; } private static void sendVotes ( UserBaseSimulationData userBaseSimulationData ) throws Exception { } public static void sendVoteRequests ( UserBaseSimulationData userBaseSimulationData ) throws Exception { } private static void waitForVoteResponses ( ) throws Exception { } private static EventVS publishEvent ( EventVS eventVS , String publisherNIF , String smimeMessageSubject ) throws Exception { } public static void startSimulationTimer ( SimulationData simulationData ) throws Exception { } private static void changeEventState ( String publisherNIF ) throws Exception { } private static void cancelVote ( VoteVSHelper voteVSHelper , String nif ) throws Exception { } }

Fix:
PublishAndSendElection . simulationData . setServerURL ( "http:////currency:8080//AccessControl" ) ;