### Question:
DebugSectionUtils { static String formatLocation(Location location) { if (location == null) { return "null"; } String worldName = location.getWorld() == null ? "null" : location.getWorld().getName(); return formatLocation(location.getX(), location.getY(), location.getZ(), worldName); } private  DebugSectionUtils();   }### Answer:
@Test public void shouldFormatLocation() { String result = DebugSectionUtils.formatLocation(0.0, 10.248592, -18934.2349023, "Main"); assertThat(result, equalTo("(0, 10.25, -18934.23) in 'Main'")); }
@Test public void shouldHandleNullWorld() { Location location = new Location(null, 3.7777, 2.14156, 1); String result = DebugSectionUtils.formatLocation(location); assertThat(result, equalTo("(3.78, 2.14, 1) in 'null'")); }
@Test public void shouldHandleNullLocation() { assertThat(DebugSectionUtils.formatLocation(null), equalTo("null")); }