mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressManagerServiceImpl.java
@Test
    public void testPrintDeep() throws CCommException
    {
        PrintStream printStream = mock(PrintStream.class);
        
        //create test address and call printDeep
        Address a = m_SUT.getOrCreateAddress("Base:test", "the-name");
        m_SUT.printDeep(printStream);
        
        //verify print stream prints address type and address object
        verify(printStream).
            format("%s: %s (%s)%n", PRODUCT_TYPE, a.toString(), "the-name");
    }
/**
     * Verify that the service can 'print deep' to a print stream.
     */
Verify that the service can 'print deep' to a print stream.
Verify that the service can ' print deep ' to a print stream .
@Test
    public void testPrintDeep() throws CCommException
    {
        PrintStream printStream = mock(PrintStream.class);
        Address a = m_SUT.getOrCreateAddress("Base:test", "the-name");
        m_SUT.printDeep(printStream);
        verify(printStream).
            format("%s: %s (%s)%n", PRODUCT_TYPE, a.toString(), "the-name");
    }
@ Test public void testPrintDeep ( ) throws CCommException { PrintStream printStream = mock ( PrintStream . class ) ; Address a = m_SUT . getOrCreateAddress ( "Base:test" , "the-name" ) ; m_SUT . printDeep ( printStream ) ; verify ( printStream ) . format ( "%s: %s (%s)%n" , PRODUCT_TYPE , a . toString ( ) , "the-name" ) ; }
Verify that the service can 'print deep' to a print stream.
Verify that the service can ' print deep ' to a print stream .
//create test address and call printDeep //verify print stream prints address type and address object