@Test
public void shouldReturnHttpServicePortFromSystemProperty() throws InvalidSyntaxException {

    when(bundleContext.getAllServiceReferences(ORG_OSGI_SERVICE_HTTP_SERVICE, null))
            .thenReturn(new ServiceReference[0]);
    when(bundleContext.getProperty(HTTP_PORT)).thenReturn("9090");
    int port = HttpServiceUtil.getHttpServicePort(bundleContext);
    assertThat(port, is(9090));
}