mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/ccomms/TestCustomCommUtility.java
@Test
    public void testGetPhysicalLinkByUuid()
    {
        m_CustomCommsService = mock(CustomCommsService.class);

        java.util.UUID javaUuid = java.util.UUID.randomUUID();
        UUID uuid = SharedMessageUtils.convertUUIDToProtoUUID(javaUuid);

        PhysicalLink testPhyLink = mock(PhysicalLink.class);
        when(testPhyLink.getUuid()).thenReturn(javaUuid);

        List<PhysicalLink> phyLinkList = new ArrayList<PhysicalLink>();
        phyLinkList.add(testPhyLink);

        when(m_CustomCommsService.getPhysicalLinks()).thenReturn(phyLinkList);

        assertThat(CustomCommUtility.getPhysicalLinkByUuid(m_CustomCommsService, uuid), is(testPhyLink));
    }
/**
     * Verify using the utility the user can retrieve a physical link by the proto uuid that is in the custom
     * comms service.
     */
Verify using the utility the user can retrieve a physical link by the proto uuid that is in the custom
comms service.
Verify using the utility the user can retrieve a physical link by the proto uuid that is in the custom comms service .
@Test
    public void testGetPhysicalLinkByUuid()
    {
        m_CustomCommsService = mock(CustomCommsService.class);
        java.util.UUID javaUuid = java.util.UUID.randomUUID();
        UUID uuid = SharedMessageUtils.convertUUIDToProtoUUID(javaUuid);
        PhysicalLink testPhyLink = mock(PhysicalLink.class);
        when(testPhyLink.getUuid()).thenReturn(javaUuid);
        List<PhysicalLink> phyLinkList = new ArrayList<PhysicalLink>();
        phyLinkList.add(testPhyLink);
        when(m_CustomCommsService.getPhysicalLinks()).thenReturn(phyLinkList);
        assertThat(CustomCommUtility.getPhysicalLinkByUuid(m_CustomCommsService, uuid), is(testPhyLink));
    }
@ Test public void testGetPhysicalLinkByUuid ( ) { m_CustomCommsService = mock ( CustomCommsService . class ) ; java . util . UUID javaUuid = java . util . UUID . randomUUID ( ) ; UUID uuid = SharedMessageUtils . convertUUIDToProtoUUID ( javaUuid ) ; PhysicalLink testPhyLink = mock ( PhysicalLink . class ) ; when ( testPhyLink . getUuid ( ) ) . thenReturn ( javaUuid ) ; List < PhysicalLink > phyLinkList = new ArrayList < PhysicalLink > ( ) ; phyLinkList . add ( testPhyLink ) ; when ( m_CustomCommsService . getPhysicalLinks ( ) ) . thenReturn ( phyLinkList ) ; assertThat ( CustomCommUtility . getPhysicalLinkByUuid ( m_CustomCommsService , uuid ) , is ( testPhyLink ) ) ; }
Verify using the utility the user can retrieve a physical link by the proto uuid that is in the custom
 comms service.
Verify using the utility the user can retrieve a physical link by the proto uuid that is in the custom comms service .