public static AgentIdentityCommand getAgentIdentity() {
ServerResource server = new ServerResource(ServerName.valueOf("myserver"));
ResourceProperties props = new ResourceProperties(server.getKey());
props.setProperty("one", "two", false);
props.setProperty("two", "one", false);
PluginSet plugins = new PluginSet();
plugins.setServer(server);
HashSet<PluginDescriptor> pluginDescriptors = new HashSet<PluginDescriptor>();
pluginDescriptors.add(new PluginDescriptor("pluginname", "pluginversion", "pluginpublisher", "http://blah"));
plugins.setPlugins(pluginDescriptors);
return new AgentIdentityCommand(server, props, plugins);
}