### Question:
SchedulerUtils { public static void normalizeRequest(ResourceRequest ask, int minMemory) { int memory = Math.max(ask.getCapability().getMemory(), minMemory); ask.getCapability().setMemory( minMemory * ((memory / minMemory) + (memory % minMemory > 0 ? 1 : 0))); }  static ContainerStatus createAbnormalContainerStatus(
      ContainerId containerId, String diagnostics); static void normalizeRequests(List<ResourceRequest> asks,
      int minMemory); static void normalizeRequest(ResourceRequest ask, int minMemory); static final String RELEASED_CONTAINER; static final String LOST_CONTAINER; static final String PREEMPTED_CONTAINER; static final String COMPLETED_APPLICATION; static final String EXPIRED_CONTAINER; static final String UNRESERVED_CONTAINER; }### Answer:
@Test public void testNormalizeRequest() { int minMemory = 1024; ResourceRequest ask = new ResourceRequestPBImpl(); ask.setCapability(Resource.createResource(-1024)); SchedulerUtils.normalizeRequest(ask, minMemory); assertEquals(minMemory, ask.getCapability().getMemory()); ask.setCapability(Resource.createResource(0)); SchedulerUtils.normalizeRequest(ask, minMemory); assertEquals(minMemory, ask.getCapability().getMemory()); ask.setCapability(Resource.createResource(2 * minMemory)); SchedulerUtils.normalizeRequest(ask, minMemory); assertEquals(2 * minMemory, ask.getCapability().getMemory()); ask.setCapability(Resource.createResource(minMemory + 10)); SchedulerUtils.normalizeRequest(ask, minMemory); assertEquals(2 * minMemory, ask.getCapability().getMemory()); }