// Path: src/main/java/com/github/jasminb/jsonapi/exceptions/DocumentSerializationException.java
// public class DocumentSerializationException extends Exception {
// 
// 	/**
// 	 * Creates new DocumentSerializationException.
// 	 * @param cause {@link Throwable} exception cause
// 	 */
// 	public DocumentSerializationException(Throwable cause) {
// 		super(cause);
// 	}
// }
// 
// Path: src/test/java/com/github/jasminb/jsonapi/models/IntegerIdResource.java
// @Type("integer-id-type")
// public class IntegerIdResource {
// 	
// 	@Id(IntegerIdHandler.class)
// 	private Integer id;
// 	
// 	private String value;
// 	
// 	public Integer getId() {
// 		return id;
// 	}
// 	
// 	public void setId(Integer id) {
// 		this.id = id;
// 	}
// 	
// 	public String getValue() {
// 		return value;
// 	}
// 	
// 	public void setValue(String value) {
// 		this.value = value;
// 	}
// }
// 
// Path: src/test/java/com/github/jasminb/jsonapi/models/LongIdResource.java
// @Type("long-id-type")
// public class LongIdResource {
// 	
// 	@Id(LongIdHandler.class)
// 	private Long id;
// 	
// 	private String value;
// 	
// 	@Relationship("integer-id-relationship")
// 	private IntegerIdResource integerIdResource;
// 	
// 	public Long getId() {
// 		return id;
// 	}
// 	
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 	
// 	public String getValue() {
// 		return value;
// 	}
// 	
// 	public void setValue(String value) {
// 		this.value = value;
// 	}
// 	
// 	public IntegerIdResource getIntegerIdResource() {
// 		return integerIdResource;
// 	}
// 	
// 	public void setIntegerIdResource(IntegerIdResource integerIdResource) {
// 		this.integerIdResource = integerIdResource;
// 	}
// }


import com.github.jasminb.jsonapi.exceptions.DocumentSerializationException;
import com.github.jasminb.jsonapi.models.IntegerIdResource;
import com.github.jasminb.jsonapi.models.LongIdResource;
import org.junit.Assert;
import org.junit.Test;
package com.github.jasminb.jsonapi;


/**
 * Covers functionality of using types other than {@link String} as resource identifier.
 *
 * @author jbegic
 */
public class NonStringIdsTest {
	
	@Test
	public void test() throws DocumentSerializationException {
		LongIdResource resource = new LongIdResource();
		resource.setId(Long.MAX_VALUE);
		resource.setValue("long-resource-value");
		
// Path: src/main/java/com/github/jasminb/jsonapi/exceptions/DocumentSerializationException.java
// public class DocumentSerializationException extends Exception {
// 
// 	/**
// 	 * Creates new DocumentSerializationException.
// 	 * @param cause {@link Throwable} exception cause
// 	 */
// 	public DocumentSerializationException(Throwable cause) {
// 		super(cause);
// 	}
// }
// 
// Path: src/test/java/com/github/jasminb/jsonapi/models/IntegerIdResource.java
// @Type("integer-id-type")
// public class IntegerIdResource {
// 	
// 	@Id(IntegerIdHandler.class)
// 	private Integer id;
// 	
// 	private String value;
// 	
// 	public Integer getId() {
// 		return id;
// 	}
// 	
// 	public void setId(Integer id) {
// 		this.id = id;
// 	}
// 	
// 	public String getValue() {
// 		return value;
// 	}
// 	
// 	public void setValue(String value) {
// 		this.value = value;
// 	}
// }
// 
// Path: src/test/java/com/github/jasminb/jsonapi/models/LongIdResource.java
// @Type("long-id-type")
// public class LongIdResource {
// 	
// 	@Id(LongIdHandler.class)
// 	private Long id;
// 	
// 	private String value;
// 	
// 	@Relationship("integer-id-relationship")
// 	private IntegerIdResource integerIdResource;
// 	
// 	public Long getId() {
// 		return id;
// 	}
// 	
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 	
// 	public String getValue() {
// 		return value;
// 	}
// 	
// 	public void setValue(String value) {
// 		this.value = value;
// 	}
// 	
// 	public IntegerIdResource getIntegerIdResource() {
// 		return integerIdResource;
// 	}
// 	
// 	public void setIntegerIdResource(IntegerIdResource integerIdResource) {
// 		this.integerIdResource = integerIdResource;
// 	}
// }


// Path: src/test/java/com/github/jasminb/jsonapi/NonStringIdsTest.java
import com.github.jasminb.jsonapi.exceptions.DocumentSerializationException;
import com.github.jasminb.jsonapi.models.IntegerIdResource;
import com.github.jasminb.jsonapi.models.LongIdResource;
import org.junit.Assert;
import org.junit.Test;

package com.github.jasminb.jsonapi;


/**
 * Covers functionality of using types other than {@link String} as resource identifier.
 *
 * @author jbegic
 */
public class NonStringIdsTest {
	
	@Test
	public void test() throws DocumentSerializationException {
		LongIdResource resource = new LongIdResource();
		resource.setId(Long.MAX_VALUE);
		resource.setValue("long-resource-value");
		
		IntegerIdResource integerIdResource = new IntegerIdResource();