Object[] object = new Object[]{"11",contextProvider};
PowerMockito.mockStatic(Util.class);
when(Util.getInputParameters(Mockito.any(), Mockito.any(), Mockito.any())).thenAnswer((Answer<Object[]>) invocation -> object);
Object testResult = Util.getInputParameters(method, "", contextProvider);
最后会发现函数返回和预期是一致的
Assert.assertEquals(testResult, object);