### Question:
Objects { public static String toString(String constructorName, Object... constructorArguments) { SimpleStringBuilder ssb = new SimpleStringBuilder(); ssb.append("new "); ssb.append(constructorName); ssb.append("("); if (constructorArguments.length > 0) { ssb.appendLiteral(constructorArguments[0]); for (int i = 1; i < constructorArguments.length; i++) { ssb.append(", "); ssb.appendLiteral(constructorArguments[i]); } } ssb.append(")"); return ssb.toString(); } private  Objects(); static String toString(String constructorName, Object... constructorArguments); static boolean equals(int a, int b); static boolean equals(long a, long b); static boolean equals(byte a, byte b); static boolean equals(char a, char b); static boolean equals(float a, float b); static boolean equals(double a, double b); static boolean equals(T a, T b);  }### Answer:
@Test public void testToString() { assertEquals("new Test(1, \"test\")", Objects.toString("Test", 1, "test")); }
@Test public void testToStringWithNulls() { assertEquals("new Test(null, \"test\")", Objects.toString("Test", null, "test")); }