@Test
public void testToJSONObject() {

	TrafficSource trafficSource = new TrafficSource(
		Collections.emptyList(), RandomTestUtil.randomString(),
		RandomTestUtil.randomInt(), RandomTestUtil.randomDouble());
	String helpMessage = RandomTestUtil.randomString();
	String title = RandomTestUtil.randomString();
	Assert.assertEquals(
		JSONUtil.put(
			"countryKeywords", JSONFactoryUtil.createJSONArray()
		).put(
			"helpMessage", helpMessage
		).put(
			"name", trafficSource.getName()
		).put(
			"share", trafficSource.getTrafficShare()
		).put(
			"title", title
		).put(
			"value", Math.toIntExact(trafficSource.getTrafficAmount())
		).toString(),
		String.valueOf(
			trafficSource.toJSONObject(helpMessage, LocaleUtil.US, title)));
}