@Test(expectedExceptions = PropertiesNotAvailableException.class)
public void testLoadPropertiesWhenIOExcpetionShouldThrowException() throws Exception {

    //GIVEN
    willThrow(new IOException()).given(properties).load(inputStream);
    //WHEN
    underTest.loadProperties();
    //THEN excpetion should be thrown
}