// Path: src/main/java/org/jusecase/builders/BuilderException.java
// public class BuilderException extends RuntimeException {
//     public BuilderException(String message) {
//         super(message);
//     }
// 
//     public BuilderException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }
// 
// Path: src/main/java/org/jusecase/Builders.java
// public static <T> T a(final Builder<T> builder) {
//     return builder.build();
// }
// 
// Path: src/main/java/org/jusecase/Builders.java
// public static LocalDateTimeBuilder localDateTime() {
//     return new LocalDateTimeBuilder();
// }


import org.junit.Test;
import org.jusecase.builders.BuilderException;
import java.time.LocalDateTime;
import static org.junit.Assert.assertEquals;
import static org.jusecase.Builders.a;
import static org.jusecase.Builders.localDateTime;
package org.jusecase.builders.time;




public class LocalDateTimeBuilderTest {


    @Test(expected = BuilderException.class)
    public void dateCannotBeParsed() {
        a(localDateTime("iedio"));
    }

    @Test
    public void defaultDate() {
        assertEquals(a(localDateTime("2015-10-21 07:28:00")), a(localDateTime()));
    }

    @Test
    public void dateTimeIsParsedCorrectly() {
// Path: src/main/java/org/jusecase/builders/BuilderException.java
// public class BuilderException extends RuntimeException {
//     public BuilderException(String message) {
//         super(message);
//     }
// 
//     public BuilderException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }
// 
// Path: src/main/java/org/jusecase/Builders.java
// public static <T> T a(final Builder<T> builder) {
//     return builder.build();
// }
// 
// Path: src/main/java/org/jusecase/Builders.java
// public static LocalDateTimeBuilder localDateTime() {
//     return new LocalDateTimeBuilder();
// }


// Path: src/test/java/org/jusecase/builders/time/LocalDateTimeBuilderTest.java
import org.junit.Test;
import org.jusecase.builders.BuilderException;
import java.time.LocalDateTime;
import static org.junit.Assert.assertEquals;
import static org.jusecase.Builders.a;
import static org.jusecase.Builders.localDateTime;

package org.jusecase.builders.time;




public class LocalDateTimeBuilderTest {


    @Test(expected = BuilderException.class)
    public void dateCannotBeParsed() {
        a(localDateTime("iedio"));
    }

    @Test
    public void defaultDate() {
        assertEquals(a(localDateTime("2015-10-21 07:28:00")), a(localDateTime()));
    }

    @Test
    public void dateTimeIsParsedCorrectly() {
        LocalDateTime dateTime = a(localDateTime("2016-01-01 08:30:40"));