package se.arbetsformedlingen.venice.probe;

import org.junit.Test;
import se.arbetsformedlingen.venice.common.Application;
import se.arbetsformedlingen.venice.common.Host;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

public class CheckProbeTest {

    @Test
    public void check_gfr_u1() {
        Host host = new Host("L7700649.u1.local");
        Application application = new Application("gfr");
        CheckProbe probe = new CheckProbe(host, application);

        ProbeResponse actual = probe.get();

        assertThat(actual.getHost()).isEqualTo(host);
        assertThat(actual.getApplication()).isEqualTo(application);
    }

}

@@ -325,49 +325,125 @@
     
-Host host = new Host(%22L7700649.u1.local%22)
+String hostName = %22L7700649.u1.local%22;%0A        Host host = new Host(hostName);%0A        String applicationName = %22gfr%22
 ;%0A  
@@ -490,21 +490,31 @@
 ication(
-%22gfr%22
+applicationName
 );%0A     
@@ -649,16 +649,20 @@
 .getHost
+Name
 ()).isEq
@@ -671,16 +671,20 @@
 lTo(host
+Name
 );%0A     
@@ -718,16 +718,20 @@
 lication
+Name
 ()).isEq
@@ -747,16 +747,20 @@
 lication
+Name
 );%0A    %7D

Use String versions everywhere