### Question:
GeoscalingScriptGenerator { public static String generateScriptString(Collection<HostGeoInfo> hosts) { return generateScriptString(new Date(), hosts); }  static String generateScriptString(Collection<HostGeoInfo> hosts); static String generateScriptString(Date generationTime, Collection<HostGeoInfo> hosts);  }### Answer:
@Test public void testScriptGeneration() { Date generationTime = new Date(0); String generatedScript = GeoscalingScriptGenerator.generateScriptString(generationTime, HOSTS); assertTrue(generatedScript.contains("1.2.3")); String expectedScript = ResourceUtils.create(this).getResourceAsString("org/apache/brooklyn/entity/dns/geoscaling/expectedScript.php"); assertEquals(generatedScript, expectedScript); String expectedScript2 = ResourceUtils.create(this).getResourceAsString("org/apache/brooklyn/entity/dns/geoscaling/expectedScript.php"); assertEquals(generatedScript, expectedScript); }
@Test public void testScriptGeneration() { Date generationTime = new Date(0); String generatedScript = GeoscalingScriptGenerator.generateScriptString(generationTime, HOSTS); assertTrue(generatedScript.contains("1.2.3")); String expectedScript = ResourceUtils.create(this).getResourceAsString("org/apache/brooklyn/entity/dns/geoscaling/expectedScript.php"); assertEqualsNormalizedEol(generatedScript, expectedScript); String expectedScript2 = ResourceUtils.create(this).getResourceAsString("org/apache/brooklyn/entity/dns/geoscaling/expectedScript.php"); assertEqualsNormalizedEol(generatedScript, expectedScript2); }