public void shouldReturnHostFromHostOnlyGitUrl() {
   // pre-conditions
   // operation
   String host = EGitUtils.getGitHost("ssh://eap2-honkabonka2.rhcloud.com/~/git/eap2.git/");
   // verification
   assertNotNull(host);
   assertEquals("eap2-honkabonka2.rhcloud.com", host);
 }
 public void shouldReturnHostFromHostWithoutPathGitUrl() {
   // pre-conditions
   // operation
   String host = EGitUtils.getGitHost("ssh://[email protected]");
   // verification
   assertNotNull(host);
   assertEquals("eap2-honkabonka2.rhcloud.com", host);
 }
 public void shouldReturnNullFromInvalidGitUrl() {
   // pre-conditions
   // operation
   String host =
       EGitUtils.getGitHost(
           "://[email protected]/~/git/eap2.git/");
   // verification
   assertNull(host);
 }
 @Test
 public void shouldReturnHostFromFullGitUrl() {
   // pre-conditions
   // operation
   String host =
       EGitUtils.getGitHost(
           "ssh://[email protected]/~/git/eap2.git/");
   // verification
   assertNotNull(host);
   assertEquals("eap2-honkabonka2.rhcloud.com", host);
 }