{"action":"reopened","issue":{"url":"https://api.github.com/repos/oncoblocks/oncoblocks/issues/2","labels_url":"https://api.github.com/repos/oncoblocks/oncoblocks/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/oncoblocks/oncoblocks/issues/2/comments","events_url":"https://api.github.com/repos/oncoblocks/oncoblocks/issues/2/events","html_url":"https://github.com/oncoblocks/oncoblocks/issues/2","id":78383608,"number":2,"title":"GeneTest : Order of json array in test case incorrect","user":{"login":"xiuchengquek","id":4745466,"avatar_url":"https://avatars.githubusercontent.com/u/4745466?v=3","gravatar_id":"","url":"https://api.github.com/users/xiuchengquek","html_url":"https://github.com/xiuchengquek","followers_url":"https://api.github.com/users/xiuchengquek/followers","following_url":"https://api.github.com/users/xiuchengquek/following{/other_user}","gists_url":"https://api.github.com/users/xiuchengquek/gists{/gist_id}","starred_url":"https://api.github.com/users/xiuchengquek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiuchengquek/subscriptions","organizations_url":"https://api.github.com/users/xiuchengquek/orgs","repos_url":"https://api.github.com/users/xiuchengquek/repos","events_url":"https://api.github.com/users/xiuchengquek/events{/privacy}","received_events_url":"https://api.github.com/users/xiuchengquek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T05:42:40Z","updated_at":"2015-05-20T11:48:19Z","closed_at":null,"body":"Hi,\r\n\r\nTried running `mvn test`. Test for `testGeneModel` in `org.oncoblocks.data_block.model.GeneTest` failed as order of alias in Gene Object is incorrect. Is the test made redundant since  `org.oncoblocks.data_block.mongo.GeneMongoTest` does the same thing and more? \r\n\r\n```\r\nFailed tests:   testGeneModel(org.oncoblocks.data_block.model.GeneTest): expected:<...2\",\"blah1...> but was:<...1\",\"blah2...>\r\n```\r\n\r\nQuick fix is to change the order of `blah1` and `blah2` but I don't think that fixes the root of the problem. JSON array assumes order of element, but `aliases` implemented as a `HashSet` in Gene Object do not ? (although key get sorted some how by the google-gson library during the serialization step ? not sure )\r\n\r\nNot too sure if this is required, but implementing `TreeSet` will ensure the `aliases` to be in natural order. "}}