@Test
public void doAction() {

    String path = "path";
    when(resource.getPath()).thenReturn(path);
    PrintPath action = new PrintPath();
    String result = action.doAction(resource);
    assertTrue(result.contains(path));
}