### Question:
TypeUtils { static String objectToString(Object obj) { String ret = null; if (obj instanceof List) { List list = (List) obj; StringBuilder sb = new StringBuilder(); String separator = ""; for (Object o : list) { sb.append(separator).append(o); separator = ","; } ret = sb.toString(); } else if (obj != null) { ret = obj.toString(); } return ret; }  static TStatus okWithMsgs(List<String> msgs); static TStatus createError(Throwable ex); static UUID toUUID(TUniqueId id); static List<UUID> toUUIDs(List<TUniqueId> ids); static TUniqueId toTUniqueId(UUID uuid); static List<TUniqueId> toTUniqueIds(List<UUID> uuids); static Resource toResource(TResource resource, NodeMapper nodeMapper); static List<Resource> toResourceList(List<TResource> tResources,
      NodeMapper nodeMapper); static Reservation toReservation(TLlamaAMReservationRequest request,
      NodeMapper nodeMapper, String queue); static Expansion toExpansion(
      TLlamaAMReservationExpansionRequest request, NodeMapper nodeMapper); static TAllocatedResource toTAllocatedResource(PlacedResource
      resource, NodeMapper nodeMapper); @SuppressWarnings("unchecked") static TLlamaAMNotificationRequest createHearbeat(UUID clientId); static TLlamaAMNotificationRequest toAMNotification(UUID handle,
      Collection<Object> rrList, NodeMapper nodeMapper); static boolean isOK(TStatus status); static String toUUIDString(List<TUniqueId> list); static final TStatus OK; }### Answer:
@Test public void testObjectToString() { Object o = "hello"; Assert.assertEquals("hello", TypeUtils.objectToString(o)); Object l = Arrays.asList("hello", "bye"); Assert.assertEquals("hello,bye", TypeUtils.objectToString(l)); }