Program: 111354
Project: 111354
Buggy source:
@Test public void serderJson1() throws IOException {
  final ObjectMapper mapper=new ObjectMapper();
  final JavaType type=mapper.getTypeFactory().uncheckedSimpleType(Statistics.class);
  final Statistics statistics=testRoundTrip(RemoteApiVersion.VERSION_1_27,"String_Node_Str",type);
  assertThat(statistics.getRead(),equalTo("String_Node_Str"));
  final StatisticNetworksConfig network=statistics.getNetworks().get("String_Node_Str");
  assertThat(network.getRxBytes(),is(1230L));
  assertThat(network.getRxPackets(),is(19L));
  assertThat(network.getRxErrors(),is(0L));
  assertThat(network.getRxDropped(),is(0L));
  assertThat(network.getTxBytes(),is(0L));
  assertThat(network.getTxPackets(),is(0L));
  assertThat(network.getTxErrors(),is(0L));
  assertThat(network.getTxDropped(),is(0L));
  final MemoryStatsConfig memoryStats=statistics.getMemoryStats();
  assertThat(memoryStats.getUsage(),is(647168L));
  assertThat(memoryStats.getMaxUsage(),is(1703936L));
  final StatsConfig stats=memoryStats.getStats();
  assertThat(stats.getActiveAnon(),is(102400L));
  assertThat(stats.getActiveFile(),is(0L));
  assertThat(stats.getCache(),is(0L));
  assertThat(stats.getDirty(),is(0L));
  assertThat(stats.getHierarchicalMemoryLimit(),is(9223372036854771712L));
  assertThat(stats.getHierarchicalMemswLimit(),is(9223372036854771712L));
  assertThat(stats.getInactiveAnon(),is(0L));
  assertThat(stats.getInactiveFile(),is(0L));
  assertThat(stats.getMappedFile(),is(0L));
  assertThat(stats.getPgfault(),is(9656L));
  assertThat(stats.getPgmajfault(),is(0L));
  assertThat(stats.getPgpgin(),is(3425L));
  assertThat(stats.getPgpgout(),is(3400L));
  assertThat(stats.getRss(),is(102400L));
  assertThat(stats.getRssHuge(),is(0L));
  assertThat(stats.getSwap(),is(0L));
  assertThat(stats.getTotalActiveAnon(),is(102400L));
  assertThat(stats.getTotalActiveFile(),is(0L));
  assertThat(stats.getTotalCache(),is(0L));
  assertThat(stats.getTotalDirty(),is(0L));
  assertThat(stats.getTotalInactiveAnon(),is(0L));
  assertThat(stats.getTotalInactiveFile(),is(0L));
  assertThat(stats.getTotalMappedFile(),is(0L));
  assertThat(stats.getTotalPgfault(),is(9656L));
  assertThat(stats.getTotalPgmajfault(),is(0L));
  assertThat(stats.getTotalPgpgin(),is(3425L));
  assertThat(stats.getTotalPgpgout(),is(3400L));
  assertThat(stats.getTotalRss(),is(102400L));
  assertThat(stats.getTotalRssHuge(),is(0L));
  assertThat(stats.getTotalSwap(),is(0L));
  assertThat(stats.getTotalUnevictable(),is(0L));
  assertThat(stats.getTotalWriteback(),is(0L));
  assertThat(stats.getUnevictable(),is(0L));
  assertThat(stats.getWriteback(),is(0L));
  assertThat(memoryStats.getLimit(),is(2095874048L));
  final BlkioStatsConfig blkioStats=statistics.getBlkioStats();
  assertThat(blkioStats.getIoServiceBytesRecursive(),is(empty()));
  assertThat(blkioStats.getIoServicedRecursive(),is(empty()));
  assertThat(blkioStats.getIoQueueRecursive(),is(empty()));
  assertThat(blkioStats.getIoServiceTimeRecursive(),is(empty()));
  assertThat(blkioStats.getIoWaitTimeRecursive(),is(empty()));
  assertThat(blkioStats.getIoMergedRecursive(),is(empty()));
  assertThat(blkioStats.getIoTimeRecursive(),is(empty()));
  assertThat(blkioStats.getSectorsRecursive(),is(empty()));
  final CpuStatsConfig cpuStats=statistics.getCpuStats();
  final CpuUsageConfig cpuUsage=cpuStats.getCpuUsage();
  assertThat(cpuUsage.getTotalUsage(),is(212198028L));
  assertThat(cpuUsage.getPercpuUsage(),equalTo(Arrays.asList(71592953L,42494761L,59298344L,38811970L)));
  assertThat(cpuUsage.getUsageInKernelmode(),is(170000000L));
  assertThat(cpuUsage.getUsageInUsermode(),is(20000000L));
  assertThat(cpuStats.getSystemCpuUsage(),is(545941980000000L));
  assertThat(cpuStats.getOnlineCpus(),is(4L));
  final ThrottlingDataConfig throttlingData=cpuStats.getThrottlingData();
  assertThat(throttlingData.getPeriods(),is(0L));
  assertThat(throttlingData.getThrottledPeriods(),is(0L));
  assertThat(throttlingData.getThrottledTime(),is(0L));
  final CpuStatsConfig preCpuStats=statistics.getPreCpuStats();
  final CpuUsageConfig preCpuUsage=preCpuStats.getCpuUsage();
  assertThat(preCpuUsage.getTotalUsage(),is(211307214L));
  assertThat(preCpuUsage.getPercpuUsage(),equalTo(Arrays.asList(71451389L,42097782L,59298344L,38459699L)));
  assertThat(preCpuUsage.getUsageInKernelmode(),is(170000000L));
  assertThat(preCpuUsage.getUsageInUsermode(),is(20000000L));
  assertThat(preCpuStats.getSystemCpuUsage(),is(545937990000000L));
  assertThat(preCpuStats.getOnlineCpus(),is(4L));
  final ThrottlingDataConfig preThrottlingData=preCpuStats.getThrottlingData();
  assertThat(preThrottlingData.getPeriods(),is(0L));
  assertThat(preThrottlingData.getThrottledPeriods(),is(0L));
  assertThat(preThrottlingData.getThrottledTime(),is(0L));
  final PidsStatsConfig pidsStats=statistics.getPidsStats();
  assertThat(pidsStats.getCurrent(),is(2L));
}

Fixed version (ground truth):
@Test public void serderJson1() throws IOException {
  final ObjectMapper mapper=new ObjectMapper();
  final JavaType type=mapper.getTypeFactory().uncheckedSimpleType(Statistics.class);
  final Statistics statistics=testRoundTrip(RemoteApiVersion.VERSION_1_27,"String_Node_Str",type);
  assertThat(statistics.getRead(),equalTo("String_Node_Str"));
  final StatisticNetworksConfig network=statistics.getNetworks().get("String_Node_Str");
  assertThat(network.getRxBytes(),is(1230L));
  assertThat(network.getRxPackets(),is(19L));
  assertThat(network.getRxErrors(),is(0L));
  assertThat(network.getRxDropped(),is(0L));
  assertThat(network.getTxBytes(),is(0L));
  assertThat(network.getTxPackets(),is(0L));
  assertThat(network.getTxErrors(),is(0L));
  assertThat(network.getTxDropped(),is(0L));
  final MemoryStatsConfig memoryStats=statistics.getMemoryStats();
  assertThat(memoryStats.getUsage(),is(647168L));
  assertThat(memoryStats.getMaxUsage(),is(1703936L));
  final StatsConfig stats=memoryStats.getStats();
  assertThat(stats.getActiveAnon(),is(102400L));
  assertThat(stats.getActiveFile(),is(0L));
  assertThat(stats.getCache(),is(0L));
  assertThat(stats.getDirty(),is(0L));
  assertThat(stats.getHierarchicalMemoryLimit(),is(9223372036854771712L));
  assertThat(stats.getHierarchicalMemswLimit(),is(9223372036854771712L));
  assertThat(stats.getInactiveAnon(),is(0L));
  assertThat(stats.getInactiveFile(),is(0L));
  assertThat(stats.getMappedFile(),is(0L));
  assertThat(stats.getPgfault(),is(9656L));
  assertThat(stats.getPgmajfault(),is(0L));
  assertThat(stats.getPgpgin(),is(3425L));
  assertThat(stats.getPgpgout(),is(3400L));
  assertThat(stats.getRss(),is(102400L));
  assertThat(stats.getRssHuge(),is(0L));
  assertThat(stats.getSwap(),is(0L));
  assertThat(stats.getTotalActiveAnon(),is(102400L));
  assertThat(stats.getTotalActiveFile(),is(0L));
  assertThat(stats.getTotalCache(),is(0L));
  assertThat(stats.getTotalDirty(),is(0L));
  assertThat(stats.getTotalInactiveAnon(),is(0L));
  assertThat(stats.getTotalInactiveFile(),is(0L));
  assertThat(stats.getTotalMappedFile(),is(0L));
  assertThat(stats.getTotalPgfault(),is(9656L));
  assertThat(stats.getTotalPgmajfault(),is(0L));
  assertThat(stats.getTotalPgpgin(),is(3425L));
  assertThat(stats.getTotalPgpgout(),is(3400L));
  assertThat(stats.getTotalRss(),is(102400L));
  assertThat(stats.getTotalRssHuge(),is(0L));
  assertThat(stats.getTotalSwap(),is(0L));
  assertThat(stats.getTotalUnevictable(),is(0L));
  assertThat(stats.getTotalWriteback(),is(0L));
  assertThat(stats.getUnevictable(),is(0L));
  assertThat(stats.getWriteback(),is(0L));
  assertThat(memoryStats.getLimit(),is(2095874048L));
  final BlkioStatsConfig blkioStats=statistics.getBlkioStats();
  assertThat(blkioStats.getIoServiceBytesRecursive().size(),is(2));
  assertThat(blkioStats.getIoServiceBytesRecursive().get(0).getValue(),is(26214L));
  assertThat(blkioStats.getIoServicedRecursive().size(),is(2));
  assertThat(blkioStats.getIoQueueRecursive(),is(empty()));
  assertThat(blkioStats.getIoServiceTimeRecursive(),is(empty()));
  assertThat(blkioStats.getIoWaitTimeRecursive(),is(empty()));
  assertThat(blkioStats.getIoMergedRecursive(),is(empty()));
  assertThat(blkioStats.getIoTimeRecursive(),is(empty()));
  assertThat(blkioStats.getSectorsRecursive(),is(empty()));
  final CpuStatsConfig cpuStats=statistics.getCpuStats();
  final CpuUsageConfig cpuUsage=cpuStats.getCpuUsage();
  assertThat(cpuUsage.getTotalUsage(),is(212198028L));
  assertThat(cpuUsage.getPercpuUsage(),equalTo(Arrays.asList(71592953L,42494761L,59298344L,38811970L)));
  assertThat(cpuUsage.getUsageInKernelmode(),is(170000000L));
  assertThat(cpuUsage.getUsageInUsermode(),is(20000000L));
  assertThat(cpuStats.getSystemCpuUsage(),is(545941980000000L));
  assertThat(cpuStats.getOnlineCpus(),is(4L));
  final ThrottlingDataConfig throttlingData=cpuStats.getThrottlingData();
  assertThat(throttlingData.getPeriods(),is(0L));
  assertThat(throttlingData.getThrottledPeriods(),is(0L));
  assertThat(throttlingData.getThrottledTime(),is(0L));
  final CpuStatsConfig preCpuStats=statistics.getPreCpuStats();
  final CpuUsageConfig preCpuUsage=preCpuStats.getCpuUsage();
  assertThat(preCpuUsage.getTotalUsage(),is(211307214L));
  assertThat(preCpuUsage.getPercpuUsage(),equalTo(Arrays.asList(71451389L,42097782L,59298344L,38459699L)));
  assertThat(preCpuUsage.getUsageInKernelmode(),is(170000000L));
  assertThat(preCpuUsage.getUsageInUsermode(),is(20000000L));
  assertThat(preCpuStats.getSystemCpuUsage(),is(545937990000000L));
  assertThat(preCpuStats.getOnlineCpus(),is(4L));
  final ThrottlingDataConfig preThrottlingData=preCpuStats.getThrottlingData();
  assertThat(preThrottlingData.getPeriods(),is(0L));
  assertThat(preThrottlingData.getThrottledPeriods(),is(0L));
  assertThat(preThrottlingData.getThrottledTime(),is(0L));
  final PidsStatsConfig pidsStats=statistics.getPidsStats();
  assertThat(pidsStats.getCurrent(),is(2L));
}