* Tests serialization/deserialization for {@link ThreadProfilingEvent}.
*/
@Test
public void testThreadProfilingEvent() {
final ThreadProfilingEvent orig = new ThreadProfilingEvent(USER_TIME, SYSTEM_TIME, BLOCKED_TIME, WAITED_TIME,
new JobVertexID(), 17, new ExecutionAttemptID(), PROFILING_INTERVAL, new JobID(), TIMESTAMP, PROFILING_TIMESTAMP);
final ThreadProfilingEvent copy = (ThreadProfilingEvent) ManagementTestUtils.createCopy(orig);
assertEquals(orig.getUserTime(), copy.getUserTime());
assertEquals(orig.getSystemTime(), copy.getSystemTime());
assertEquals(orig.getBlockedTime(), copy.getBlockedTime());
assertEquals(orig.getWaitedTime(), copy.getWaitedTime());
assertEquals(orig.getVertexID(), copy.getVertexID());
assertEquals(orig.getProfilingInterval(), copy.getProfilingInterval());
assertEquals(orig.getJobID(), copy.getJobID());
assertEquals(orig.getTimestamp(), copy.getTimestamp());
assertEquals(orig.getProfilingTimestamp(), copy.getProfilingTimestamp());
assertEquals(orig.hashCode(), copy.hashCode());
assertTrue(orig.equals(copy));
}