@Test
public void testSetPropertiesShouldPutPropertiesToPropertyHolder() {

    //GIVEN in setUp
    properties.put("switch", "stub");
    properties.put("proxy.port", "1234");
    //WHEN
    underTest.setProperties(properties);
    //THEN
    PropertyHolder actual = (PropertyHolder) Whitebox.getInternalState(underTest, "propertyHolder");
    assertEquals(actual.get("switch"), "stub");
    assertEquals(actual.getInt("proxy.port"), Integer.valueOf(1234));
}