NodeTask { public ServiceResourceProfile getProfile() { return profile; } NodeTask(ServiceResourceProfile profile, Constraint constraint); Protos.SlaveID getSlaveId(); void setSlaveId(Protos.SlaveID slaveId); Constraint getConstraint(); String getHostname(); void setHostname(String hostname); Protos.TaskStatus getTaskStatus(); void setTaskStatus(Protos.TaskStatus taskStatus); Protos.ExecutorInfo getExecutorInfo(); void setExecutorInfo(Protos.ExecutorInfo executorInfo); void setSlaveAttributes(List<Attribute> slaveAttributes); List<Attribute> getSlaveAttributes(); String getTaskPrefix(); void setTaskPrefix(String taskPrefix); ServiceResourceProfile getProfile(); void setProfile(ServiceResourceProfile serviceresourceProfile);  }
@Test public void testServiceResourceProfileState() throws Exception { Assert.assertEquals(new Double(1024.0), task.getProfile().getMemory()); Assert.assertEquals(new Double(0.1), task.getProfile().getCpus()); }