// Path: src/main/java/com/github/liblevenshtein/transducer/Candidate.java
// @Value
// public class Candidate implements Serializable {
// 
//   private static final long serialVersionUID = 1L;
// 
//   /**
//    * Candidate term from the dictionary automaton.
//    * @return Candidate term from the dictionary automaton.
//    */
//   private final String term;
// 
//   /**
//    * Distance between the candidate term and the query term.
//    * @return Distance between the candidate term and the query term.
//    */
//   private final int distance;
// }


import com.github.liblevenshtein.transducer.Candidate;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
import lombok.val;
package com.github.liblevenshtein.transducer.factory;





public class CandidateFactoryTest {

  private static final String FOO = "foo";

  @Test
  public void testWithDistance() {
    val candidateFactory = new CandidateFactory.WithDistance();
// Path: src/main/java/com/github/liblevenshtein/transducer/Candidate.java
// @Value
// public class Candidate implements Serializable {
// 
//   private static final long serialVersionUID = 1L;
// 
//   /**
//    * Candidate term from the dictionary automaton.
//    * @return Candidate term from the dictionary automaton.
//    */
//   private final String term;
// 
//   /**
//    * Distance between the candidate term and the query term.
//    * @return Distance between the candidate term and the query term.
//    */
//   private final int distance;
// }


// Path: src/test/java/com/github/liblevenshtein/transducer/factory/CandidateFactoryTest.java
import com.github.liblevenshtein.transducer.Candidate;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
import lombok.val;

package com.github.liblevenshtein.transducer.factory;





public class CandidateFactoryTest {

  private static final String FOO = "foo";

  @Test
  public void testWithDistance() {
    val candidateFactory = new CandidateFactory.WithDistance();
    final Candidate candidate = candidateFactory.build(FOO, 2);