### Question:
SharedUtil implements Serializable { public static String dashSeparatedToCamelCase(String dashSeparated) { if (dashSeparated == null) { return null; } String[] parts = dashSeparated.split("-"); for (int i = 1; i < parts.length; i++) { parts[i] = capitalize(parts[i]); } return join(parts, ""); }  static boolean equals(Object o1, Object o2); static String trimTrailingSlashes(String value); static String[] splitCamelCase(String camelCaseString); static String camelCaseToHumanFriendly(String camelCaseString); static String join(String[] parts, String separator); static String capitalize(String string); static String propertyIdToHumanFriendly(Object propertyId); static String addGetParameters(String uri, String extraParams); static String dashSeparatedToCamelCase(String dashSeparated); static final String SIZE_PATTERN; }### Answer:
@Test public void dashSeparatedToCamelCase() { Assert.assertEquals(null, SharedUtil.dashSeparatedToCamelCase(null)); Assert.assertEquals("", SharedUtil.dashSeparatedToCamelCase("")); Assert.assertEquals("foo", SharedUtil.dashSeparatedToCamelCase("foo")); Assert.assertEquals("fooBar", SharedUtil.dashSeparatedToCamelCase("foo-bar")); Assert.assertEquals("fooBar", SharedUtil.dashSeparatedToCamelCase("foo--bar")); Assert.assertEquals("fooBarBaz", SharedUtil.dashSeparatedToCamelCase("foo-bar-baz")); Assert.assertEquals("fooBarBaz", SharedUtil.dashSeparatedToCamelCase("foo-Bar-Baz")); }