@Test
public void testGetHttpAgent() {

    PropertySource propertySource = spy(new PropertySource());
    propertySource.getHttpAgent();
    verify(propertySource).getSystemProperty("http.agent");
    assertEquals(propertySource.getHttpAgent(), propertySource.getSystemProperty("http.agent"));
}