SanskritNomadServerState implements NomadServerState<NodeContext> { @Override public String getLastMutationUser() { return getString(LAST_MUTATION_USER); } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); @Override boolean isInitialized(); @Override NomadServerMode getMode(); @Override long getMutativeMessageCount(); @Override String getLastMutationHost(); @Override String getLastMutationUser(); @Override Instant getLastMutationTimestamp(); @Override UUID getLatestChangeUuid(); @Override long getCurrentVersion(); @Override long getHighestVersion(); @Override ChangeRequest<NodeContext> getChangeRequest(UUID changeUuid); @Override NomadStateChange<NodeContext> newStateChange(); @Override void applyStateChange(NomadStateChange<NodeContext> change); @Override Optional<NodeContext> getCurrentCommittedConfig(); @Override void reset();  }
@Test public void getLastMutationUser() throws Exception { when(sanskrit.getString("lastMutationUser")).thenReturn("user"); assertEquals("user", state.getLastMutationUser()); }