package org.motechproject.nms.api.web.contract.mobileAcademy;

/**
 * API response object for getting course version
 */
public class CourseVersionResponse {

    private int courseVersion;

    public CourseVersionResponse() {
    }

    public CourseVersionResponse(int courseVersion) {

        this.courseVersion = courseVersion;
    }

    public Integer getCourseVersion() {
        return courseVersion;
    }

    public void setCourseVersion(Integer courseVersion) {
        this.courseVersion = courseVersion;
    }
}

package org.motechproject.nms.api.web.contract.mobileAcademy;

/**
 * API response object for getting course version
 */
public class CourseVersionResponse {

    private long courseVersion;

    public CourseVersionResponse() {
    }

    public CourseVersionResponse(long courseVersion) {

        this.courseVersion = courseVersion;
    }

    public Long getCourseVersion() {
        return courseVersion;
    }

    public void setCourseVersion(Long courseVersion) {
        this.courseVersion = courseVersion;
    }
}

Fix a bug in MA tests. Casting version.getMillis to an int resulted in the integer rolling over and returning a negative number