### Question:
ProcessInfo { @Deprecated public ProcState getState() throws SystemInfoException { return priorSnaphot().getState(); } protected  ProcessInfo();  ProcessInfo(long pid);  ProcessInfo(long pid, SigarProxy sigar); void refresh(); ProcessInfoSnapshot priorSnaphot(); ProcessInfoSnapshot freshSnapshot(); void destroy(); long getPid(); String getName(); String getBaseName(); String[] getCommandLine(); Map<String, String> getEnvironmentVariables(); @Nullable String getEnvironmentVariable(@NotNull
    String name); @Deprecated long getParentPid(); @Deprecated ProcState getState(); @Deprecated ProcExe getExecutable(); @Deprecated ProcTime getTime(); @Deprecated ProcMem getMemory(); @Deprecated ProcCpu getCpu(); @Deprecated ProcFd getFileDescriptor(); @Deprecated ProcCred getCredentials(); @Deprecated ProcCredName getCredentialsName(); @Deprecated String getCurrentWorkingDirectory(); @Deprecated boolean isRunning(); AggregateProcessInfo getAggregateProcessTree(); ProcessInfo getParentProcess(); void kill(String signalName); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testGetState() throws Exception { assertTrue(procState == processInfo.getState()); procState = Mockito.mock(ProcState.class); when(sigarProxy.getProcState(PID)).thenReturn(procState); assertFalse(procState == processInfo.getState()); processInfo.refresh(); assertTrue(procState == processInfo.getState()); }