mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressManagerServiceImpl.java
@Test
    public void testCheckAddressAlreadyExistsBadFormat() throws CCommException
    {
        String addrString = "Base:jack-Jill";
        when(m_Translator.getAddressPropsFromString(addrString.split(":")[1])).
            thenThrow(new CCommException(FormatProblem.ADDRESS_MISMATCH));
        //act
        assertThat(m_SUT.checkAddressAlreadyExists(addrString), is(false));
    }
/**
     * Verify no exception, but false, if the check for if an address exists is passed an address string which is 
     * no formatted correctly.
     */
Verify no exception, but false, if the check for if an address exists is passed an address string which is
no formatted correctly.
Verify no exception but false if the check for if an address exists is passed an address string which is no formatted correctly .
@Test
    public void testCheckAddressAlreadyExistsBadFormat() throws CCommException
    {
        String addrString = "Base:jack-Jill";
        when(m_Translator.getAddressPropsFromString(addrString.split(":")[1])).
            thenThrow(new CCommException(FormatProblem.ADDRESS_MISMATCH));
        assertThat(m_SUT.checkAddressAlreadyExists(addrString), is(false));
    }
@ Test public void testCheckAddressAlreadyExistsBadFormat ( ) throws CCommException { String addrString = "Base:jack-Jill" ; when ( m_Translator . getAddressPropsFromString ( addrString . split ( ":" ) [ 1 ] ) ) . thenThrow ( new CCommException ( FormatProblem . ADDRESS_MISMATCH ) ) ; assertThat ( m_SUT . checkAddressAlreadyExists ( addrString ) , is ( false ) ) ; }
Verify no exception, but false, if the check for if an address exists is passed an address string which is
 no formatted correctly.
Verify no exception but false if the check for if an address exists is passed an address string which is no formatted correctly .
//act