@Test
public void testRefreshInventoryOnOutOfBand()
    throws Exception
{

    PowerMockito.mockStatic( SpringContextHelper.class );
    when( SpringContextHelper.getIbInventoryLocaiton() ).thenReturn( "dummy.json" );
    ResponseEntity<Object> response = new ResponseEntity<>( HttpStatus.OK );
    HmsOobAgentRestTemplate<?> restTemplateMock = mock( HmsOobAgentRestTemplate.class );
    whenNew( HmsOobAgentRestTemplate.class ).withAnyArguments().thenReturn( restTemplateMock );
    when( restTemplateMock.exchange( HttpMethod.PUT, Constants.HMS_OOB_INVENTORY_RELOAD,
                                     Object.class ) ).thenReturn( response );
    boolean status = InventoryUtil.refreshInventoryOnOutOfBand();
    assertTrue( status );
}