class DemoConnection implements BuildCapability, TestCapability, ViewCapability, MetricCapability {

    @Override
    public Date getEstimatedFinishTime(SoftwareProjectId projectId, String buildId) throws ProjectNotFoundException,
            BuildNotFoundException {
        if (projectId.equals(mars)) {
            return marsProj.estimatedFinishTime();
        }
        if (projectId.equals(moon)) {
            Date date = new DateTime().plusHours(8).toDate();
            return date;
        }
        return new Date();
    }

    public  DemoConnection();

}