    @Test
    public void testLookupEndpoint() {

        when(readOptional.isPresent()).thenReturn(true);
        when(readOptional.get()).thenReturn(endpoint);
        Endpoint result = EndpointHelper.lookupEndpoint(epKey, readTransaction);
        assertEquals(result, endpoint);
    }