@Test
public void testCommandUtility() throws Exception{

    List<String> commands = new ArrayList<>();
    commands.add("# comment");
    commands.add("ps -aef | grep {0}");
    Stream<String> commandStream = commands.stream();
    PowerMockito.mockStatic(Paths.class);
    PowerMockito.mockStatic(Files.class);
    PowerMockito.mockStatic(ClassLoader.class);
    URL url = PowerMockito.mock(URL.class);
    PowerMockito.when(ClassLoader.getSystemResource(Mockito.anyString())).thenReturn(url);
    PowerMockito.when(Paths.get(Mockito.anyObject())).thenReturn(mockedPath);
    PowerMockito.when(Files.lines(Mockito.any(Path.class))).thenReturn(commandStream);
    List<String> processedCommands = CommandUtility.getCommandsFromFile("test.txt", "nginx");
    Assert.assertNotNull(processedCommands);
    Assert.assertTrue(processedCommands.get(0).contains("nginx"));
}