Quantities { public static String normalizeCpu(String milliCpu) { return formatMilliCpu(parseCpuAsMilliCpus(milliCpu)); } private  Quantities(); static long parseMemory(String memory); static String formatMemory(long bytes); static String normalizeMemory(String memory); static int parseCpuAsMilliCpus(String cpu); static String formatMilliCpu(int milliCpu); static String normalizeCpu(String milliCpu);  }
@Test public void testNormalizeCpu() { assertThat(normalizeCpu("1"), is("1")); assertThat(normalizeCpu("1000m"), is("1")); assertThat(normalizeCpu("500m"), is("500m")); assertThat(normalizeCpu("0.5"), is("500m")); assertThat(normalizeCpu("0.1"), is("100m")); assertThat(normalizeCpu("0.01"), is("10m")); assertThat(normalizeCpu("0.001"), is("1m")); }