### Question:
SMONMemoryWorkaroundService { public String firehoseHeapsize(StackType stackType, Set<String> componentsByHostGroup) { if (isDataLake(stackType)) { return calculateSmonMemoryParameterBasedOnServices( stackType, componentsByHostGroup, datalakeNormalFirehoseHeapsize, datalakeExtensiveFirehoseHeapsize); } else { return calculateSmonMemoryParameterBasedOnServices( stackType, componentsByHostGroup, datahubNormalFirehoseHeapsize, datahubExtensiveFirehoseHeapsize); } }  String firehoseHeapsize(StackType stackType, Set<String> componentsByHostGroup); String firehoseNonJavaMemoryBytes(StackType stackType, Set<String> componentsByHostGroup);  }### Answer:
@Test public void getFirehoseHeapsizeWhenDLAndNoRegionServerInTheBlueprintShouldReturnLowMemoryforDL() { Assert.assertEquals("1073741824", underTest.firehoseHeapsize(StackType.DATALAKE, Sets.newHashSet())); }
@Test public void getFirehoseHeapsizeWhenDLAndRegionServerInTheBlueprintShouldReturnHighMemoryforDL() { Assert.assertEquals("3221225472", underTest.firehoseHeapsize(StackType.DATALAKE, Sets.newHashSet("REGIONSERVER"))); }
@Test public void getFirehoseHeapsizeWhenDHAndNoRegionServerInTheBlueprintShouldReturnLowMemoryforDH() { Assert.assertEquals("2147483648", underTest.firehoseHeapsize(StackType.WORKLOAD, Sets.newHashSet())); }