# Error in Java 102 lesson? (testing workflows)

**URL:** <https://community.temporal.io/t/error-in-java-102-lesson-testing-workflows/13201>\
**Category:** Training\
**Tags:** java-sdk\
**Created:** [August 17, 2024, 1:05pm UTC](https://community.temporal.io/t/error-in-java-102-lesson-testing-workflows/13201 "2024-08-17T13:05:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mackler](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mackler](https://community.temporal.io/u/mackler)\
**Post date:** [August 17, 2024, 1:05pm UTC](https://community.temporal.io/t/error-in-java-102-lesson-testing-workflows/13201/1 "2024-08-17T13:05:23Z")

</div>

I may be mistaken but I think I’m looking at an error in example code in the “[Testing Workflows](https://temporal.talentlms.com/unit/view/id:2677)” lesson of the Java 102 course.

```java
@WorkflowInterface
public interface SumOfSquaresWorkflowImpl{

        @WorkflowMethod
        int calculateSumOfSquares(int first, int second);
}

public class SumOfSquaresWorkflowImpl implements SumOfSquaresWorkflow {

```

Should the name of the interface be `SumOfSquaresWorkflow` rather than `SumOfSquaresWorkflowImpl`?

---

<div class="post-metadata">

**Author:** ![tomwheeler](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tomwheeler/32/5441_2.png) [@tomwheeler](https://community.temporal.io/u/tomwheeler)\
**Post date:** [August 19, 2024, 6:05pm UTC](https://community.temporal.io/t/error-in-java-102-lesson-testing-workflows/13201/2 "2024-08-19T18:05:12Z")

</div>

Hi Adam,

Thank you for reporting this.

I can confirm that you’re correct—the interface in the code sample incorrectly used the name of the implementation class. The interface should have been called `SumOfSquaresWorkflow`, as you suggested. I have updated the course to correct this.

Thanks again,

Tom Wheeler
